Fix config parsing when configuring server protocol. Fixes https://github.com/GNS3/gns3-gui/issues/3681

This commit is contained in:
grossmj 2024-12-26 16:36:52 +07:00
parent a521e61efc
commit efc3ff62b5
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -147,7 +147,7 @@ class ServerSettings(BaseModel):
allow_remote_console: bool = False
enable_builtin_templates: bool = True
install_builtin_appliances: bool = True
model_config = ConfigDict(validate_assignment=True, str_strip_whitespace=True, use_enum_values=True)
model_config = ConfigDict(validate_assignment=True, str_strip_whitespace=True)
@field_validator("additional_images_paths", mode="before")
@classmethod