Fix some bugs with missing elements in the run system job task

This commit is contained in:
Matthew Jones 2014-10-14 14:21:18 -04:00
parent 6ed9705d91
commit 8b8fb2403c

View File

@ -1138,8 +1138,11 @@ class RunInventoryUpdate(BaseTask):
class RunSystemJob(BaseTask):
name = 'awx.main.tasks.run_system_job'
model = 'SystemJob'
model = SystemJob
def build_args(self, system_job, **kwargs):
args = ['awx-manage', system_job.job_type]
return args
def build_cwd(self, instance, **kwargs):
return settings.BASE_DIR