From 3ccb0b82437e6ec8f30367adb11472a772e46a69 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 10 Nov 2014 11:25:45 -0800 Subject: [PATCH] Revert expanding hte tilde in shell plugin until we determine why it's forcing fetch down an alternate path --- lib/ansible/runner/shell_plugins/sh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/runner/shell_plugins/sh.py b/lib/ansible/runner/shell_plugins/sh.py index 52e3f68f336..713e41b3f67 100644 --- a/lib/ansible/runner/shell_plugins/sh.py +++ b/lib/ansible/runner/shell_plugins/sh.py @@ -37,12 +37,12 @@ class ShellModule(object): return path.endswith('/') def chmod(self, mode, path): - path = os.path.expanduser(path) + #path = os.path.expanduser(path) path = pipes.quote(path) return 'chmod %s %s' % (mode, path) def remove(self, path, recurse=False): - path = os.path.expanduser(path) + #path = os.path.expanduser(path) path = pipes.quote(path) if recurse: return "rm -rf %s >/dev/null 2>&1" % path @@ -62,7 +62,7 @@ class ShellModule(object): return cmd def checksum(self, path, python_interp): - path = os.path.expanduser(path) + #path = os.path.expanduser(path) path = pipes.quote(path) # The following test needs to be SH-compliant. BASH-isms will # not work if /bin/sh points to a non-BASH shell.