1
0
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:
Alan Rominger 2017-10-10 09:30:06 -04:00 committed by GitHub
commit 70f8ec78de

View File

@ -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: