mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix missing expanduser on chdir value
This commit is contained in:
parent
d07378ceac
commit
46b60a5b70
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ def main():
|
||||||
module.fail_json(rc=256, msg="no command given")
|
module.fail_json(rc=256, msg="no command given")
|
||||||
|
|
||||||
if chdir:
|
if chdir:
|
||||||
|
chdir = os.path.abspath(os.path.expanduser(chdir))
|
||||||
os.chdir(chdir)
|
os.chdir(chdir)
|
||||||
|
|
||||||
if creates:
|
if creates:
|
||||||
|
|
Loading…
Reference in a new issue