mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Chdir to tempdir to prevent permissions problems.
This commit is contained in:
parent
8f3b2b281f
commit
b2542bff72
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ def main():
|
||||||
cmd = '%s --system-site-packages %s' % (virtualenv, env)
|
cmd = '%s --system-site-packages %s' % (virtualenv, env)
|
||||||
else:
|
else:
|
||||||
cmd = '%s %s' % (virtualenv, env)
|
cmd = '%s %s' % (virtualenv, env)
|
||||||
|
os.chdir(tempfile.gettempdir())
|
||||||
rc, out_venv, err_venv = module.run_command(cmd)
|
rc, out_venv, err_venv = module.run_command(cmd)
|
||||||
out += out_venv
|
out += out_venv
|
||||||
err += err_venv
|
err += err_venv
|
||||||
|
|
Loading…
Reference in a new issue