mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
Silently return if there isn't valid json passed in as extra data fields
This commit is contained in:
parent
8848cbfa1e
commit
786cc3fa85
@ -447,7 +447,10 @@ class Job(UnifiedJob, JobOptions):
|
||||
def handle_extra_data(self, extra_data):
|
||||
if extra_data == "":
|
||||
return
|
||||
evars = json.loads(self.extra_vars)
|
||||
try:
|
||||
evars = json.loads(self.extra_vars)
|
||||
catch Exception, e:
|
||||
return
|
||||
evars.update(extra_data)
|
||||
self.update_fields(extra_vars=json.dumps(evars))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user