Common: Use from_json() in build_default_agent_configuration()

This commit is contained in:
Mike Salvatore 2022-06-24 12:29:54 -04:00
parent 6a927266a4
commit a1baaae76a
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
from . import AgentConfiguration, AgentConfigurationSchema from . import AgentConfiguration
DEFAULT_AGENT_CONFIGURATION_JSON = """{ DEFAULT_AGENT_CONFIGURATION_JSON = """{
"keep_tunnel_open_time": 30, "keep_tunnel_open_time": 30,
@ -204,5 +204,4 @@ DEFAULT_AGENT_CONFIGURATION_JSON = """{
def build_default_agent_configuration() -> AgentConfiguration: def build_default_agent_configuration() -> AgentConfiguration:
schema = AgentConfigurationSchema() return AgentConfiguration.from_json(DEFAULT_AGENT_CONFIGURATION_JSON)
return schema.loads(DEFAULT_AGENT_CONFIGURATION_JSON)