Skip to content

Commit

Permalink
fix: make type conversions work correctly (related ansible#14487)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurokobo committed Sep 28, 2023
1 parent 15925f1 commit 6f1b364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx_collection/plugins/modules/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f1b364

Please sign in to comment.