mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-27 10:21:49 -05:00
removed system job code that handles extra_vars in favor using common (unified job) code alread in use by normal jobs
This commit is contained in:
@@ -994,25 +994,6 @@ class SystemJob(UnifiedJob, SystemJobOptions):
|
||||
from awx.main.tasks import RunSystemJob
|
||||
return RunSystemJob
|
||||
|
||||
def handle_extra_data(self, extra_data):
|
||||
if extra_data == "" or extra_data is None:
|
||||
return
|
||||
try:
|
||||
evars = json.loads(self.extra_vars)
|
||||
except Exception, e:
|
||||
evars = {}
|
||||
if type(extra_data) == str:
|
||||
try:
|
||||
extra_data = json.loads(extra_data)
|
||||
except Exception, e:
|
||||
extra_data = {}
|
||||
if evars is None:
|
||||
evars = extra_data
|
||||
else:
|
||||
evars.update(extra_data)
|
||||
self.update_fields(extra_vars=json.dumps(evars))
|
||||
|
||||
|
||||
def socketio_emit_data(self):
|
||||
return {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user