mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Signed-off-by: kurokobo <2920259+kurokobo@users.noreply.github.com> Co-authored-by: Alan Rominger <arominge@redhat.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user