Skip to content

Commit f92d3f3

Browse files
authored
Merge pull request #28 from ceph/fix-pydantic-env-error
fix pydantic ValidationError when loading .env file
2 parents cca7443 + 18c1054 commit f92d3f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/teuthology_api/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ class APISettings(BaseSettings):
77
Class for API settings.
88
"""
99

10-
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8")
10+
model_config = SettingsConfigDict(
11+
env_file=".env", env_file_encoding="utf-8", extra="ignore"
12+
)
1113
# TODO: team names need to be changed below when created
1214
admin_team: str = "ceph" # ceph's github team with *sudo* access to sepia
1315
teuth_team: str = "teuth" # ceph's github team with access to sepia

0 commit comments

Comments
 (0)