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 (
|
||||
CustomPBAConfiguration,
|
||||
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):
|
||||
keep_tunnel_open_time: PositiveFloat
|
||||
custom_pbas: CustomPBAConfiguration
|
||||
|
|
Loading…
Reference in New Issue