Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

fix autoscale pool size check #1067

Merged
merged 2 commits into from
Jul 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pytypes/onefuzztypes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ class AutoScaleConfig(BaseModel):

@root_validator()
def check_data(cls, values: Any) -> Any:
if values["min_size"] <= values["max_size"]:
if values["min_size"] > values["max_size"]:
raise ValueError("The pool min_size is greater than max_size")
return values

Expand Down