mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -03:30
Check extra data to make sure it's not just an empty string
This commit is contained in:
@@ -445,6 +445,8 @@ class Job(UnifiedJob, JobOptions):
|
|||||||
return dependencies
|
return dependencies
|
||||||
|
|
||||||
def handle_extra_data(self, extra_data):
|
def handle_extra_data(self, extra_data):
|
||||||
|
if extra_data == "":
|
||||||
|
return
|
||||||
evars = json.loads(self.extra_vars)
|
evars = json.loads(self.extra_vars)
|
||||||
evars.update(extra_data)
|
evars.update(extra_data)
|
||||||
self.update_fields(extra_vars=json.dumps(evars))
|
self.update_fields(extra_vars=json.dumps(evars))
|
||||||
|
|||||||
Reference in New Issue
Block a user