mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-18 06:11:07 -07:00
Convert some more base64 strings to text for winrm, to support async and become (#24796)
This commit is contained in:
parent
def76a3c3b
commit
1eed6c5b3d
2 changed files with 5 additions and 5 deletions
|
@ -307,10 +307,10 @@ class Connection(ConnectionBase):
|
|||
|
||||
def _create_raw_wrapper_payload(self, cmd, environment=dict()):
|
||||
payload = {
|
||||
'module_entry': base64.b64encode(to_bytes(cmd)),
|
||||
'module_entry': to_text(base64.b64encode(to_bytes(cmd))),
|
||||
'powershell_modules': {},
|
||||
'actions': ['exec'],
|
||||
'exec': base64.b64encode(to_bytes(leaf_exec)),
|
||||
'exec': to_text(base64.b64encode(to_bytes(leaf_exec))),
|
||||
'environment': environment
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue