Island: Use schema.loads in AgentConfiguration POST method

This commit is contained in:
Ilija Lazoroski 2022-06-23 15:56:41 +02:00 committed by Shreya Malviya
parent d7329ea839
commit 42c4803376
1 changed files with 1 additions and 3 deletions

View File

@ -26,9 +26,7 @@ class AgentConfiguration(AbstractResource):
def post(self):
try:
request_contents = json.loads(request.data)
configuration_object = self._schema.load(request_contents)
configuration_object = self._schema.loads(request.data)
self._agent_configuration_repository.store_configuration(configuration_object)
return make_response({}, 200)
except (marshmallow.exceptions.ValidationError, json.JSONDecodeError) as err: