From 5ebdb60ea4297f28ecbfceb05bf6ca8465c552d7 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 17 Jun 2022 11:41:29 -0400 Subject: [PATCH] Island: Add @abstractmethod in IAgentConfigurationRepository --- .../cc/repository/i_agent_configuration_repository.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/repository/i_agent_configuration_repository.py b/monkey/monkey_island/cc/repository/i_agent_configuration_repository.py index 05817b80d..4129d119c 100644 --- a/monkey/monkey_island/cc/repository/i_agent_configuration_repository.py +++ b/monkey/monkey_island/cc/repository/i_agent_configuration_repository.py @@ -1,4 +1,4 @@ -from abc import ABC +from abc import ABC, abstractmethod from common.configuration import AgentConfiguration @@ -8,6 +8,7 @@ class IAgentConfigurationRepository(ABC): A repository used to store and retrieve the agent configuration. """ + @abstractmethod def get_configuration(self) -> AgentConfiguration: """ Retrieve the agent configuration from the repository @@ -16,6 +17,7 @@ class IAgentConfigurationRepository(ABC): """ pass + @abstractmethod def set_configuration(self, agent_configuration: AgentConfiguration): """ Store the agent configuration in the repository