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

Commit 46f4aac

Browse files
authored
Default must be greater than or equal to minimum (#2248)
1 parent dc43242 commit 46f4aac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api-service/__app__/onefuzzlib/workers/scalesets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,9 @@ def shutdown(self) -> None:
759759
)
760760
logging.info(SCALESET_LOG_PREFIX + str(vms_with_protection))
761761
if vms_with_protection is not None:
762-
profile.capacity.minimum = len(vms_with_protection)
762+
num_vms_with_protection = len(vms_with_protection)
763+
profile.capacity.minimum = num_vms_with_protection
764+
profile.capacity.default = num_vms_with_protection
763765
else:
764766
logging.error(
765767
"Failed to list vmss for scaleset %s" % self.scaleset_id

0 commit comments

Comments
 (0)