From ebc1d95233f864964b9da2b54551fbd27a935766 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 6 Feb 2017 16:22:23 -0500 Subject: [PATCH] Don't perform last job run calculation for sync project updates --- awx/main/models/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index 6c76143f40..9897067843 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -473,7 +473,7 @@ class ProjectUpdate(UnifiedJob, ProjectOptions, JobNotificationMixin): def _update_parent_instance(self): parent_instance = self._get_parent_instance() - if parent_instance: + if parent_instance and self.job_type == 'check': update_fields = self._update_parent_instance_no_save(parent_instance) if self.status in ('successful', 'failed', 'error', 'canceled'): if not self.failed and parent_instance.scm_delete_on_next_update: