mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -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
|
@ -850,9 +850,9 @@ def build_windows_module_payload(module_name, module_path, b_module_data, module
|
|||
|
||||
if task.async > 0:
|
||||
exec_manifest["actions"].insert(0, 'async_watchdog')
|
||||
exec_manifest["async_watchdog"] = base64.b64encode(to_bytes(async_watchdog))
|
||||
exec_manifest["async_watchdog"] = to_text(base64.b64encode(to_bytes(async_watchdog)))
|
||||
exec_manifest["actions"].insert(0, 'async_wrapper')
|
||||
exec_manifest["async_wrapper"] = base64.b64encode(to_bytes(async_wrapper))
|
||||
exec_manifest["async_wrapper"] = to_text(base64.b64encode(to_bytes(async_wrapper)))
|
||||
exec_manifest["async_jid"] = str(random.randint(0, 999999999999))
|
||||
exec_manifest["async_timeout_sec"] = task.async
|
||||
|
||||
|
@ -860,7 +860,7 @@ def build_windows_module_payload(module_name, module_path, b_module_data, module
|
|||
exec_manifest["actions"].insert(0, 'become')
|
||||
exec_manifest["become_user"] = play_context.become_user
|
||||
exec_manifest["become_password"] = play_context.become_pass
|
||||
exec_manifest["become"] = base64.b64encode(to_bytes(become_wrapper))
|
||||
exec_manifest["become"] = to_text(base64.b64encode(to_bytes(become_wrapper)))
|
||||
|
||||
lines = b_module_data.split(b'\n')
|
||||
module_names = set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue