From 3da875142abf89c41d7f859c09929f22f57fd57f Mon Sep 17 00:00:00 2001 From: Logan Cary Date: Mon, 2 Dec 2024 09:57:55 -0500 Subject: [PATCH] set defaults --- src/middlewared/middlewared/api/v25_04_0/pool_scrub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/middlewared/middlewared/api/v25_04_0/pool_scrub.py b/src/middlewared/middlewared/api/v25_04_0/pool_scrub.py index e1cb1255661a..f032dd746c84 100644 --- a/src/middlewared/middlewared/api/v25_04_0/pool_scrub.py +++ b/src/middlewared/middlewared/api/v25_04_0/pool_scrub.py @@ -21,9 +21,9 @@ class PoolScrubCron(CronModel): class PoolScrubEntry(BaseModel): pool: PositiveInt - threshold: Annotated[int, Field(ge=0)] - description: str - schedule: PoolScrubCron + threshold: Annotated[int, Field(ge=0)] = 35 + description: str = "" + schedule: PoolScrubCron = Field(default_factory=PoolScrubCron) enabled: bool = True id: int pool_name: str