add process isolation to project updates

see: https://github.com/ansible/ansible-tower/issues/7506
This commit is contained in:
Ryan Petrello
2017-08-24 16:37:59 -04:00
parent 6068eafeb6
commit a2ca0e6012
3 changed files with 33 additions and 0 deletions

View File

@@ -701,6 +701,7 @@ def wrap_args_with_proot(args, cwd, **kwargs):
show_paths = [cwd]
show_paths.extend([settings.ANSIBLE_VENV_PATH, settings.AWX_VENV_PATH])
show_paths.extend(getattr(settings, 'AWX_PROOT_SHOW_PATHS', None) or [])
show_paths.extend(kwargs.get('proot_show_paths', []))
for path in sorted(set(show_paths)):
if not os.path.exists(path):
continue