Agent: Use response.json() in ControlChannel

This commit is contained in:
Ilija Lazoroski 2022-07-21 14:33:14 +02:00
parent 282b8bbed2
commit 45884ff233
1 changed files with 1 additions and 3 deletions

View File

@ -84,9 +84,7 @@ class ControlChannel(IControlChannel):
) )
response.raise_for_status() response.raise_for_status()
return [ return [Credentials.from_mapping(credentials) for credentials in response.json()]
Credentials.from_mapping(credentials) for credentials in json.loads(response.text)
]
except ( except (
requests.exceptions.JSONDecodeError, requests.exceptions.JSONDecodeError,
requests.exceptions.ConnectionError, requests.exceptions.ConnectionError,