Island: Change agent_configuration.py POST to parse from json

This commit is contained in:
vakarisz 2022-07-07 12:18:58 +03:00
parent 1ab190cd2a
commit c8ed409e9e
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class AgentConfiguration(AbstractResource):
@jwt_required
def post(self):
try:
configuration_object = AgentConfigurationObject.from_json(request.data)
configuration_object = AgentConfigurationObject.from_mapping(request.json)
self._agent_configuration_repository.store_configuration(configuration_object)
return make_response({}, 200)
except (InvalidConfigurationError, json.JSONDecodeError) as err: