mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Convert some more base64 strings to text for winrm, to support async and become (#24796)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user