forked from p15670423/monkey
Island: Fix function call to load config in new configuration resource
This commit is contained in:
parent
e25eb194a1
commit
104c7ac210
|
@ -28,7 +28,7 @@ class AgentConfiguration(AbstractResource):
|
||||||
configuration_json = json.loads(request_contents["config"])
|
configuration_json = json.loads(request_contents["config"])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
configuration_object = self._schema.loads(configuration_json)
|
configuration_object = self._schema.load(configuration_json)
|
||||||
self._agent_configuration_repository.store_configuration(configuration_object)
|
self._agent_configuration_repository.store_configuration(configuration_object)
|
||||||
return make_response({}, 200)
|
return make_response({}, 200)
|
||||||
except marshmallow.exceptions.ValidationError:
|
except marshmallow.exceptions.ValidationError:
|
||||||
|
|
Loading…
Reference in New Issue