mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Silently return if there isn't valid json passed in as extra data fields
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user