Refactor and extract a get_available_slots utility
This adds coverage as well. This will be needed for subsidiary diffs.
Related to swh/infra/sysadm-environment#3367 (closed)
Test Plan
tox
Migrated from D5846 (view on Phabricator)
This adds coverage as well. This will be needed for subsidiary diffs.
Related to swh/infra/sysadm-environment#3367 (closed)
tox
Migrated from D5846 (view on Phabricator)