From 98daaece73f27d064631a39b3768ee2925299ef1 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 27 Feb 2017 16:21:33 -0500 Subject: [PATCH] Switch job_type to check from sync when detecting delete_on_update --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index ce4c9bc5bd..584e6ce0bb 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1218,7 +1218,7 @@ class RunProjectUpdate(BaseTask): 'scm_url': scm_url, 'scm_branch': scm_branch, 'scm_clean': project_update.scm_clean, - 'scm_delete_on_update': project_update.scm_delete_on_update if project_update.job_type == 'sync' else False, + 'scm_delete_on_update': project_update.scm_delete_on_update if project_update.job_type == 'check' else False, 'scm_full_checkout': True if project_update.job_type == 'run' else False, 'scm_revision_output': self.revision_path })