mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Merge pull request #517 from AlanCoding/vars_exception
fallback to empty dict when processing extra_data
This commit is contained in:
commit
70f8ec78de
@ -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…
Reference in New Issue
Block a user