From 599c753cf7a80534c09af87670150f03f1c857da Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 13 Sep 2022 09:31:38 +0200 Subject: [PATCH] Island: Add docstrings to reset_agent_configuration event handler --- .../cc/island_event_handlers/reset_agent_configuration.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/monkey/monkey_island/cc/island_event_handlers/reset_agent_configuration.py b/monkey/monkey_island/cc/island_event_handlers/reset_agent_configuration.py index 081922e7a..d6c6f8786 100644 --- a/monkey/monkey_island/cc/island_event_handlers/reset_agent_configuration.py +++ b/monkey/monkey_island/cc/island_event_handlers/reset_agent_configuration.py @@ -2,6 +2,11 @@ from monkey_island.cc.repository import IAgentConfigurationRepository, IFileRepo class reset_agent_configuration: + """ + Callable class that handles removal of PBA files and reset of agent configuration + on the Island. + """ + def __init__( self, agent_configuration_repository: IAgentConfigurationRepository, @@ -15,6 +20,9 @@ class reset_agent_configuration: self._agent_configuration_repository.reset_to_default() def _remove_pba_files(self): + """ + Removes PBA files from the file repository + """ agent_configuration = self._agent_configuration_repository.get_configuration() custom_pbas = agent_configuration.custom_pbas