From f9cff3c4445da18f406a1626c65198ac32554324 Mon Sep 17 00:00:00 2001 From: Stoned Elipot Date: Wed, 29 May 2013 17:05:11 +0200 Subject: [PATCH] No need to expanduser() command's chdir argument twice --- library/commands/command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/commands/command b/library/commands/command index e996c0c4a7f..ad6ed6c171e 100644 --- a/library/commands/command +++ b/library/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