mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -07:00
added comment explaining chdir defaults
This commit is contained in:
parent
d34f89a6fe
commit
2d7b1bd1c4
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ def main():
|
||||||
module.fail_json(msg='version is incompatible with state=latest')
|
module.fail_json(msg='version is incompatible with state=latest')
|
||||||
|
|
||||||
if chdir is None:
|
if chdir is None:
|
||||||
|
# this is done to avoid permissions issues with privilege escalation and virtualenvs
|
||||||
chdir = tempfile.gettempdir()
|
chdir = tempfile.gettempdir()
|
||||||
|
|
||||||
err = ''
|
err = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue