mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
fallback to empty dict when processing extra_data
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user