Merge "Change bytes to str in servers_client for python3"

This commit is contained in:
Zuul 2020-05-22 11:41:10 +00:00 committed by Gerrit Code Review
commit d145194f52

@ -211,6 +211,9 @@ class ServersClient(base_compute_client.BaseComputeClient):
post_body)
if body:
body = json.loads(body)
else:
if isinstance(body, bytes):
body = body.decode('utf-8')
self.validate_response(schema, resp, body)
return rest_client.ResponseBody(resp, body)