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

Commit

Permalink
allow and set onefuzz cli autoscale min value default to zero (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamL-Microsoft authored Jul 13, 2022
1 parent 0b8093b commit d71c558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/onefuzz/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ def create(
spot_instances: bool = False,
ephemeral_os_disks: bool = False,
tags: Optional[Dict[str, str]] = None,
min_instances: Optional[int] = 1,
min_instances: Optional[int] = 0,
scale_out_amount: Optional[int] = 1,
scale_out_cooldown: Optional[int] = 10,
scale_in_amount: Optional[int] = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/pytypes/onefuzztypes/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class ScalesetUpdate(BaseRequest):


class AutoScaleOptions(BaseModel):
min: int = Field(ge=1)
min: int = Field(ge=0)
max: int = Field(ge=1)
default: int = Field(ge=1)
scale_out_amount: int = Field(ge=1)
Expand Down

0 comments on commit d71c558

Please sign in to comment.