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:
Alan Rominger 2020-12-15 13:29:03 -05:00 committed by Shane McDonald
parent 10e68c6fb3
commit eb5bf599e3

View File

@ -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):