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,7 +451,10 @@ class Job(UnifiedJob, JobOptions):
|
||||
evars = json.loads(self.extra_vars)
|
||||
except Exception, e:
|
||||
return
|
||||
evars.update(extra_data)
|
||||
if evars is None:
|
||||
evars = extra_data
|
||||
else:
|
||||
evars.update(extra_data)
|
||||
self.update_fields(extra_vars=json.dumps(evars))
|
||||
|
||||
def copy(self):
|
||||
|
Loading…
Reference in New Issue
Block a user