Skip to content

Commit

Permalink
fix: do not use a stale default value for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond-u committed Mar 15, 2024
1 parent 045ae22 commit 39093a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lungo_cli/models/config.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from datetime import timedelta
from ipaddress import IPv4Address, IPv4Network
from typing import Any
from typing import Annotated, Any

from pydantic import ConfigDict, DirectoryPath, EmailStr, field_validator, FilePath, NewPath, PositiveInt
from pydantic.fields import FieldInfo
from pydantic.fields import Field, FieldInfo

from .base import AllowedApps, Base, FileName, Port
from ..core.constants import APP_NAME_CAPITALIZED
Expand Down Expand Up @@ -129,7 +129,8 @@ class Config(Base):
branding: Branding = Branding()
directories: Directories
network: Network
plugins: Plugins = Plugins()
# Do not use a stale default value for plugins
plugins: Annotated[Plugins, Field(default_factory=Plugins)]
rules: Rules = Rules()
security: Security = Security()
smtp: Smtp

0 comments on commit 39093a5

Please sign in to comment.