mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This reverts commit ce515a626c
.
This commit is contained in:
parent
15d46ce428
commit
23c94295dc
2 changed files with 2 additions and 4 deletions
|
@ -1,2 +0,0 @@
|
||||||
bugfixes:
|
|
||||||
- powershell - Fix issue where setting ANSIBLE_KEEP_REMOTE_FILES fails when using Python 2.6 - https://github.com/ansible/ansible/issues/45490
|
|
|
@ -57,7 +57,7 @@ import re
|
||||||
import shlex
|
import shlex
|
||||||
|
|
||||||
from ansible.errors import AnsibleError
|
from ansible.errors import AnsibleError
|
||||||
from ansible.module_utils._text import to_native, to_text
|
from ansible.module_utils._text import to_text
|
||||||
from ansible.plugins.shell import ShellBase
|
from ansible.plugins.shell import ShellBase
|
||||||
|
|
||||||
|
|
||||||
|
@ -1605,7 +1605,7 @@ class ShellModule(ShellBase):
|
||||||
|
|
||||||
# non-pipelining
|
# non-pipelining
|
||||||
|
|
||||||
cmd_parts = shlex.split(to_native(cmd), posix=False)
|
cmd_parts = shlex.split(cmd, posix=False)
|
||||||
cmd_parts = list(map(to_text, cmd_parts))
|
cmd_parts = list(map(to_text, cmd_parts))
|
||||||
if shebang and shebang.lower() == '#!powershell':
|
if shebang and shebang.lower() == '#!powershell':
|
||||||
if not self._unquote(cmd_parts[0]).lower().endswith('.ps1'):
|
if not self._unquote(cmd_parts[0]).lower().endswith('.ps1'):
|
||||||
|
|
Loading…
Reference in a new issue