diff --git a/lib/ansible/module_utils/network/nso/nso.py b/lib/ansible/module_utils/network/nso/nso.py index 9fdb5acecb8..96302a55792 100644 --- a/lib/ansible/module_utils/network/nso/nso.py +++ b/lib/ansible/module_utils/network/nso/nso.py @@ -244,7 +244,7 @@ class JsonRpc(object): raise NsoException( 'NSO returned HTTP code {0}, expected 200'.format(resp.status), {}) - resp_body = resp.read() + resp_body = resp.read().decode('utf8') resp_json = json.loads(resp_body) if 'error' in resp_json: