spring-cloud-connectors icon indicating copy to clipboard operation
spring-cloud-connectors copied to clipboard

Make Tags.contains() case-insensitive

Open coxjonc opened this issue 9 years ago • 2 comments

One of our custom Cloud Foundry services is tagged with an uppercase R Redis, and as a result it isn't being picked up by auto-reconfiguration, which matches only lowercase tags. Changing the tag string to lowercase in Tags.contains() before checking against the list of relevant tags would prevent this type of bug and make the auto-reconfiguration process a little more robust for users with different conventions for naming tags.

Let me know if this sounds like a worthwhile change and I'll submit a PR.

coxjonc avatar Jun 05 '17 21:06 coxjonc

I think this is reasonable. A PR would be welcomed.

scottfrederick avatar Jun 05 '17 21:06 scottfrederick

Fixed via 5896a0b8b15f1206b19420cf43c36290369a416c

scottfrederick avatar Oct 25 '17 21:10 scottfrederick