mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Handle the case where the existing extra vars is None
This commit is contained in:
parent
c609f7a81d
commit
d3416336ed
@ -451,6 +451,9 @@ class Job(UnifiedJob, JobOptions):
|
||||
evars = json.loads(self.extra_vars)
|
||||
except Exception, e:
|
||||
return
|
||||
if evars is None:
|
||||
evars = extra_data
|
||||
else:
|
||||
evars.update(extra_data)
|
||||
self.update_fields(extra_vars=json.dumps(evars))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user