Skip to content

Commit 3a8c440

Browse files
committed
Turned file path fields in Security BaseModel to Optional[Path]
1 parent a5f1c6f commit 3a8c440

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/murfey/util/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ def from_file(config_file_path: Path, instrument: str = "") -> Dict[str, Machine
8383

8484

8585
class Security(BaseModel):
86-
rabbitmq_credentials: str
87-
murfey_db_credentials: str
86+
murfey_db_credentials: Optional[Path] = None
8887
crypto_key: str
8988
auth_key: str = ""
9089
auth_algorithm: str = ""
@@ -94,10 +93,11 @@ class Security(BaseModel):
9493
session_token_timeout: Optional[int] = None
9594
auth_type: Literal["password", "cookie"] = "password"
9695
cookie_key: str = ""
96+
rabbitmq_credentials: Optional[Path] = None
9797
feedback_queue: str = "murfey_feedback"
9898
graylog_host: str = ""
9999
graylog_port: Optional[int] = None
100-
ispyb_credentials: str = ""
100+
ispyb_credentials: Optional[Path] = None
101101

102102
@validator("graylog_port")
103103
def check_port_present_if_host_is(

0 commit comments

Comments
 (0)