mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
AC-1158 Fix project to set delete on next update.
This commit is contained in:
@@ -292,9 +292,12 @@ class Project(UnifiedJobTemplate, ProjectOptions):
|
||||
def _can_update(self):
|
||||
return bool(self.scm_type)
|
||||
|
||||
def create_project_update(self, **kwargs):
|
||||
def _update_unified_job_kwargs(self, **kwargs):
|
||||
if self.scm_delete_on_next_update:
|
||||
kwargs['scm_delete_on_update'] = True
|
||||
return kwargs
|
||||
|
||||
def create_project_update(self, **kwargs):
|
||||
return self.create_unified_job(**kwargs)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user