1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

No need to expanduser() command's chdir argument twice

This commit is contained in:
Stoned Elipot 2013-05-29 17:05:11 +02:00
parent f9a14f0d70
commit f9cff3c444

View file

@ -95,7 +95,7 @@ def main():
module.fail_json(rc=256, msg="no command given")
if chdir:
os.chdir(os.path.expanduser(chdir))
os.chdir(chdir)
if creates:
# do not run the command if the line contains creates=filename