diff options
author | Matt Davis <nitzmahone@users.noreply.github.com> | 2016-03-25 07:14:42 +0000 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2016-03-25 07:14:42 +0000 |
commit | afc82f6bebaac1f71bab5c07e9c010f9086c56b5 (patch) | |
tree | fe932354d50a205e707f2111e3e2d853e6ea0f18 | |
parent | 3221be4340e0e9bddb3054f5c317fb77ffb48046 (diff) | |
parent | 2aba1c211d402dc14fe074bef5c86df5bf911f38 (diff) | |
download | ansible-afc82f6bebaac1f71bab5c07e9c010f9086c56b5.tar.gz |
Merge pull request #14930 from mholiv/enable_dollar_as_first_char_in_folder_and_userName
Modified files to use single quotes rather than double for file path.…
-rw-r--r-- | lib/ansible/plugins/connection/winrm.py | 2 | ||||
-rw-r--r-- | lib/ansible/plugins/shell/powershell.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/connection/winrm.py b/lib/ansible/plugins/connection/winrm.py index 3c079a1f2e..1fd72f0c94 100644 --- a/lib/ansible/plugins/connection/winrm.py +++ b/lib/ansible/plugins/connection/winrm.py @@ -270,7 +270,7 @@ class Connection(ConnectionBase): script_template = u''' begin {{ - $path = "{0}" + $path = '{0}' $DebugPreference = "Continue" $ErrorActionPreference = "Stop" diff --git a/lib/ansible/plugins/shell/powershell.py b/lib/ansible/plugins/shell/powershell.py index 443e55144d..569df09d44 100644 --- a/lib/ansible/plugins/shell/powershell.py +++ b/lib/ansible/plugins/shell/powershell.py @@ -52,7 +52,7 @@ class ShellModule(object): path = '\\'.join(parts) if path.startswith('~'): return path - return '"%s"' % path + return '\'%s\'' % path # powershell requires that script files end with .ps1 def get_remote_filename(self, base_name): |