default chdir to tmpdir to avoid virtualenv issues
This commit is contained in:
parent
68e7945767
commit
d34f89a6fe
1 changed files with 3 additions and 0 deletions
|
@ -258,6 +258,9 @@ def main():
|
|||
if state == 'latest' and version is not None:
|
||||
module.fail_json(msg='version is incompatible with state=latest')
|
||||
|
||||
if chdir is None:
|
||||
chdir = tempfile.gettempdir()
|
||||
|
||||
err = ''
|
||||
out = ''
|
||||
|
||||
|
|
Loading…
Reference in a new issue