From aa7509e49f95811cc96ed3eb230a2ac3495a1906 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 30 Jun 2022 10:02:01 -0400 Subject: [PATCH] Island: Add reset_to_default() to IAgentConfigurationRepository --- .../cc/repository/i_agent_configuration_repository.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ef63121c2..d941ce075 100644 --- a/monkey/monkey_island/cc/repository/i_agent_configuration_repository.py +++ b/monkey/monkey_island/cc/repository/i_agent_configuration_repository.py @@ -28,3 +28,12 @@ class IAgentConfigurationRepository(ABC): :raises StorageError: If the configuration could not be stored """ pass + + @abstractmethod + def reset_to_default(self): + """ + Remove any stored configuration from the repository + + :raises RemovalError: If the repository could not be reset + """ + pass