diff --git a/awx_collection/plugins/modules/settings.py b/awx_collection/plugins/modules/settings.py index 56c0b94e5ad1..c911f77fcc6b 100644 --- a/awx_collection/plugins/modules/settings.py +++ b/awx_collection/plugins/modules/settings.py @@ -89,7 +89,7 @@ def coerce_type(module, value): if not HAS_YAML: module.fail_json(msg="yaml is not installed, try 'pip install pyyaml'") return yaml.safe_load(value) - elif value.lower in ('true', 'false', 't', 'f'): + elif value.lower() in ('true', 'false', 't', 'f'): return {'t': True, 'f': False}[value[0].lower()] try: return int(value)