Skip to content

Commit

Permalink
last_gc in GetCVMFSStatusJSON should be optional.
Browse files Browse the repository at this point in the history
Also updates dependencies to avoid weird ruff issues.

Fixes #8
  • Loading branch information
terjekv committed Jan 21, 2024
1 parent 395164d commit e14b10c
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 269 deletions.
4 changes: 2 additions & 2 deletions cvmfsscraper/http_get_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class GetCVMFSStatusJSON(CVMFSBaseModel):
json_schema_extra={"format": "%a %b %d %H:%M:%S %Z %Y"},
)

last_gc: datetime = Field(
...,
last_gc: Optional[datetime] = Field(
None,
description="The last garbage collection time",
json_schema_extra={"format": "%a %b %d %H:%M:%S %Z %Y"},
)
Expand Down
Loading

0 comments on commit e14b10c

Please sign in to comment.