mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -02:30
Prevent exception for Non value
This commit is contained in:
@@ -82,6 +82,10 @@ except ImportError:
|
|||||||
|
|
||||||
|
|
||||||
def coerce_type(module, value):
|
def coerce_type(module, value):
|
||||||
|
# If our value is already None we can just return directly
|
||||||
|
if value == None:
|
||||||
|
return value
|
||||||
|
|
||||||
yaml_ish = bool((
|
yaml_ish = bool((
|
||||||
value.startswith('{') and value.endswith('}')
|
value.startswith('{') and value.endswith('}')
|
||||||
) or (
|
) or (
|
||||||
|
|||||||
@@ -74,3 +74,9 @@
|
|||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- "result is changed"
|
- "result is changed"
|
||||||
|
|
||||||
|
- name: Handle an omit value
|
||||||
|
tower_settings:
|
||||||
|
name: AWX_PROOT_BASE_PATH
|
||||||
|
value: '{{ junk_var | default(omit) }}'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user