Island: Add docstrings to reset_agent_configuration event handler
This commit is contained in:
parent
ea47fc326a
commit
599c753cf7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue