mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 02:58:10 +00:00
fix autoscale pool size check (#1067)
This commit is contained in:
@ -605,7 +605,7 @@ class AutoScaleConfig(BaseModel):
|
|||||||
|
|
||||||
@root_validator()
|
@root_validator()
|
||||||
def check_data(cls, values: Any) -> Any:
|
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")
|
raise ValueError("The pool min_size is greater than max_size")
|
||||||
return values
|
return values
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user