Common: Remove agent_configuration.InvalidConfigurationError

This commit is contained in:
Shreya Malviya 2022-08-30 12:58:10 +05:30
parent dda79c0809
commit fe3706c0b4
2 changed files with 1 additions and 12 deletions

View File

@ -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,

View File

@ -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