mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Prevent exception for Non value
This commit is contained in:
parent
7623257a6c
commit
4de7de3ce9
@ -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 (
|
||||
|
||||
@ -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) }}'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user