From 8b8fb2403c63920077ca76fe6eadb28b30006c1d Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 14 Oct 2014 14:21:18 -0400 Subject: [PATCH] Fix some bugs with missing elements in the run system job task --- awx/main/tasks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index e982b73481..b81eb1242d 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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