summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorStoned Elipot <stoned.elipot@gmail.com>2013-05-29 17:05:11 +0200
committerStoned Elipot <stoned.elipot@gmail.com>2013-05-29 17:05:11 +0200
commit85529d4022ca0802b0d6ae06e1d4e64fd2be8883 (patch)
tree913b8f01c14b1f141de9725b017c49fc7d176423 /commands
parent2a479cca524f09f9dbee7965709e0a6a778bcaf2 (diff)
downloadansible-modules-extras-85529d4022ca0802b0d6ae06e1d4e64fd2be8883.tar.gz
No need to expanduser() command's chdir argument twice
Diffstat (limited to 'commands')
-rw-r--r--commands/command2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/command b/commands/command
index e996c0c4..ad6ed6c1 100644
--- a/commands/command
+++ b/commands/command
@@ -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