mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
extra_vars_dict: handle the case where an entire yaml file is commented
This commit is contained in:
parent
7e822c34d5
commit
fad5fb5f58
@ -90,6 +90,9 @@ class VarsDictProperty(object):
|
||||
if d is None:
|
||||
try:
|
||||
d = yaml.safe_load(v)
|
||||
# This can happen if the whole file is commented out
|
||||
if d is None:
|
||||
d = {}
|
||||
except yaml.YAMLError:
|
||||
pass
|
||||
if d is None and self.key_value:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user