From 8c14423c4ea5efb7c81a7e1ee270f34c70fbeaa8 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 21 Jun 2022 14:41:55 -0700 Subject: [PATCH] Island: Prepend 'agent' to everything having 'configuration' in new configuration resource --- monkey/monkey_island/cc/resources/configuration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/resources/configuration.py b/monkey/monkey_island/cc/resources/configuration.py index 0eab79bf9..710db13aa 100644 --- a/monkey/monkey_island/cc/resources/configuration.py +++ b/monkey/monkey_island/cc/resources/configuration.py @@ -31,8 +31,8 @@ class ResponseContents: return self.__dict__ -class Configuration(AbstractResource): - urls = ["/api/configuration"] +class AgentConfiguration(AbstractResource): + urls = ["/api/agent-configuration"] def __init__(self, agent_configuration_repository: IAgentConfigurationRepository): self._agent_configuration_repository = agent_configuration_repository @@ -46,7 +46,7 @@ class Configuration(AbstractResource): def post(self): request_contents = json.loads(request.data) configuration_json = json.loads(request_contents["config"]) - Configuration._remove_metadata_from_config(configuration_json) + AgentConfiguration._remove_metadata_from_config(configuration_json) try: # Q: encryption is moving to the frontend; also check this in the frontend?