New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treat tag search as case insensitive #298
Comments
value_type is where we're moving to do pre transforms before compares |
did you want case insensitive on the tag key or value or both |
Both I suppose. If I understand your previous comment, it's going to be something like:
in the configuration file? (Very loose pseudocode there) |
so for now (its mixed up in some other work on a pull request #299), its just doing the value. syntax looks like type: value
key: "tag:SomeTag"
value: rabbit
value_type: normalize would match "Rabbit " |
If there are tags that are not being searched for, this code:
sets
My fix was to change that to:
Is a pull request better? |
It'd be useful to have a flag that when filtering on tags, can match case-insensitively. Ideally everyone follows the rules...but it's also easy enough to get a mix of cases.
It seems that c7n/filters/core.py is where to fix that:
but I'm not sure the best way to make that a parameter/flag. Add an element to the
'properties'
definition,'type': 'boolean'
?The text was updated successfully, but these errors were encountered: