mirror of
https://github.com/ansible/awx.git
synced 2026-01-24 07:51:23 -03:30
Fix an issue with sync vs run project updates
We need to not remove the source tree on project update run which happens in the context of the job run to prevent the directory from being deleted out from under the job runners. Since those will inherently not block each other as the project update would
This commit is contained in:
parent
d8151b05b8
commit
1a946d51c1
@ -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,
|
||||
'scm_delete_on_update': project_update.scm_delete_on_update if project_update.job_type == 'sync' else False,
|
||||
'scm_full_checkout': True if project_update.job_type == 'run' else False,
|
||||
'scm_revision_output': self.revision_path
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user