mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Fix raw archive project updates
Several squashed commits Fix git bug introduced by setting remote tmp in project path change shebang back to py3 again Revert shebang change
This commit is contained in:
parent
10e68c6fb3
commit
eb5bf599e3
@ -2231,6 +2231,14 @@ class RunProjectUpdate(BaseTask):
|
||||
elif project_update.project.allow_override:
|
||||
# If branch is override-able, do extra fetch for all branches
|
||||
extra_vars['scm_refspec'] = 'refs/heads/*:refs/remotes/origin/*'
|
||||
|
||||
if project_update.scm_type == 'archive':
|
||||
# for raw archive, prevent error moving files between volumes
|
||||
extra_vars['ansible_remote_tmp'] = os.path.join(
|
||||
project_update.get_project_path(check_if_exists=False),
|
||||
'.ansible_awx', 'tmp'
|
||||
)
|
||||
|
||||
self._write_extra_vars_file(private_data_dir, extra_vars)
|
||||
|
||||
def build_cwd(self, project_update, private_data_dir):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user