From 46b60a5b70a395a040ad08401086ca3bad881d0e Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 14 Jan 2015 08:02:49 -0600 Subject: [PATCH] Fix missing expanduser on chdir value --- lib/ansible/modules/commands/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/commands/command.py b/lib/ansible/modules/commands/command.py index 50d329199c..6baf35922c 100644 --- a/lib/ansible/modules/commands/command.py +++ b/lib/ansible/modules/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: