mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
fallback to empty dict when processing extra_data
This commit is contained in:
parent
4237b9ed5c
commit
e2c398ade2
@ -879,6 +879,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
||||
|
||||
def handle_extra_data(self, extra_data):
|
||||
if hasattr(self, 'extra_vars') and extra_data:
|
||||
extra_data_dict = {}
|
||||
try:
|
||||
extra_data_dict = parse_yaml_or_json(extra_data, silent_failure=False)
|
||||
except Exception as e:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user