summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2015-01-14 08:02:49 -0600
committerToshio Kuratomi <toshio@fedoraproject.org>2015-06-01 14:51:57 -0700
commit76c6a5327400ff10fa3cf002875ba6a87a0b40ea (patch)
tree0ddcc3c6196c7360a7e54532139f4b2dbf95460f /commands
parent6a63f2a6ba1a3ddd22fcb4d057259740c8df1f6d (diff)
downloadansible-modules-core-76c6a5327400ff10fa3cf002875ba6a87a0b40ea.tar.gz
Fix missing expanduser on chdir value
Diffstat (limited to 'commands')
-rw-r--r--commands/command.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/command.py b/commands/command.py
index 50d32919..6baf3592 100644
--- a/commands/command.py
+++ b/commands/command.py
@@ -178,6 +178,7 @@ def main():
module.fail_json(rc=256, msg="no command given")
if chdir:
+ chdir = os.path.abspath(os.path.expanduser(chdir))
os.chdir(chdir)
if creates: