bugfix: use to_text(stdout) in psrp.Connection.put_file method (#73491)
Co-authored-by: jakegatsby <jakegatsby@example.com>
This commit is contained in:
parent
0cdc410dce
commit
f271d02a9f
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/psrp-json-loads-bytes.yml
Normal file
2
changelogs/fragments/psrp-json-loads-bytes.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- to_text(stdout) before json.loads in psrp.Connection.put_file in case stdout is bytes
|
|
@ -472,7 +472,7 @@ class Connection(ConnectionBase):
|
|||
if rc != 0:
|
||||
raise AnsibleError(to_native(stderr))
|
||||
|
||||
put_output = json.loads(stdout)
|
||||
put_output = json.loads(to_text(stdout))
|
||||
remote_sha1 = put_output.get("sha1")
|
||||
|
||||
if not remote_sha1:
|
||||
|
|
Loading…
Reference in a new issue