Convert some more base64 strings to text for winrm, to support async and become (#24796)

This commit is contained in:
Matt Martz 2017-05-18 18:06:51 -05:00 committed by Matt Davis
parent def76a3c3b
commit 1eed6c5b3d
2 changed files with 5 additions and 5 deletions

View file

@ -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
}