mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-20 16:09:09 -07:00
Revert "Add PowerShell exception handling and turn on strict mode."
This commit is contained in:
parent
3aedc0bca9
commit
db65503778
9 changed files with 22 additions and 286 deletions
|
@ -167,7 +167,7 @@ class Connection(ConnectionBase):
|
|||
elif '-EncodedCommand' not in cmd_parts:
|
||||
script = ' '.join(cmd_parts)
|
||||
if script:
|
||||
cmd_parts = self._shell._encode_script(script, as_list=True, strict_mode=False)
|
||||
cmd_parts = self._shell._encode_script(script, as_list=True)
|
||||
if '-EncodedCommand' in cmd_parts:
|
||||
encoded_cmd = cmd_parts[cmd_parts.index('-EncodedCommand') + 1]
|
||||
decoded_cmd = to_unicode(base64.b64decode(encoded_cmd))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue