forked from p15670423/monkey
Common: Remove agent_configuration.InvalidConfigurationError
This commit is contained in:
parent
dda79c0809
commit
fe3706c0b4
|
@ -1,4 +1,4 @@
|
||||||
from .agent_configuration import AgentConfiguration, InvalidConfigurationError
|
from .agent_configuration import AgentConfiguration
|
||||||
from .agent_sub_configurations import (
|
from .agent_sub_configurations import (
|
||||||
CustomPBAConfiguration,
|
CustomPBAConfiguration,
|
||||||
PluginConfiguration,
|
PluginConfiguration,
|
||||||
|
|
|
@ -13,17 +13,6 @@ from .agent_sub_configurations import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InvalidConfigurationError(Exception):
|
|
||||||
def __init__(self, message: str):
|
|
||||||
self._message = message
|
|
||||||
|
|
||||||
def __str__(self) -> str:
|
|
||||||
return (
|
|
||||||
f"Cannot construct an AgentConfiguration object with the supplied, invalid data: "
|
|
||||||
f"{self._message}"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class AgentConfiguration(MutableInfectionMonkeyBaseModel):
|
class AgentConfiguration(MutableInfectionMonkeyBaseModel):
|
||||||
keep_tunnel_open_time: PositiveFloat
|
keep_tunnel_open_time: PositiveFloat
|
||||||
custom_pbas: CustomPBAConfiguration
|
custom_pbas: CustomPBAConfiguration
|
||||||
|
|
Loading…
Reference in New Issue