mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-06 21:12:37 +00:00
attribute should match for all
This commit is contained in:
@@ -44,7 +44,7 @@ def match_json_property(module, data, expr, value=None):
|
||||
def _match_value(buf, v):
|
||||
if isinstance(buf, list):
|
||||
# convert all values from bool to str and lowercase them
|
||||
return v.lower() in [str(i).lower() for i in buf]
|
||||
return all([str(i).lower() == v.lower() for i in buf])
|
||||
elif isinstance(buf, str):
|
||||
return v.lower() == content.lower()
|
||||
elif isinstance(buf, bool):
|
||||
|
||||
Reference in New Issue
Block a user