Skip to content

Fix MaxUseCount logic when zero

Arran Walker requested to merge ajwalker/fix-max-used-zero into main

WithMaxUseCount(0) should disable the use count, but capacity logic was still behaving as if the logic was active.

This could result in VMs being removed prematurely and Capacity() reporting that a VM was unavailable for tasks.

Merge request reports