Prevent exception for Non value

This commit is contained in:
John Westcott IV 2020-06-05 13:29:37 -04:00
parent 7623257a6c
commit 4de7de3ce9
2 changed files with 10 additions and 0 deletions

View File

@ -82,6 +82,10 @@ except ImportError:
def coerce_type(module, value):
# If our value is already None we can just return directly
if value == None:
return value
yaml_ish = bool((
value.startswith('{') and value.endswith('}')
) or (

View File

@ -74,3 +74,9 @@
- assert:
that:
- "result is changed"
- name: Handle an omit value
tower_settings:
name: AWX_PROOT_BASE_PATH
value: '{{ junk_var | default(omit) }}'