Agent: Use response.text in ControlChannel

This commit is contained in:
Ilija Lazoroski 2022-07-21 10:52:35 +02:00
parent 6d372485fc
commit 47f78d1a2d
1 changed files with 3 additions and 1 deletions

View File

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