diff options
Diffstat (limited to 'awx_collection/plugins/modules/settings.py')
-rw-r--r-- | awx_collection/plugins/modules/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awx_collection/plugins/modules/settings.py b/awx_collection/plugins/modules/settings.py index 56c0b94e5a..c911f77fcc 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) |