![]() Two functions, 'consume_requests' and 'apply_requests' (via the '_apply_request' helper), used very similar code to identify the PCI device pools that could be used to satisfy a request for PCI devices. Rather than duplicating this code, introduce a new '_filter_pools' helper than will do this filtering and return a list of matching pools, if any. This is essentially the old '_apply_request' function without any decreasing of pool count information. While we're here, we inline a simple function with a single caller and add whitespace to make things a little easier to grok. Change-Id: Icf3d684446e01d2c04d91954a1fd0ec659b418e3 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Related-Bug: #1852727 |
||
---|---|---|
.. | ||
__init__.py | ||
fakes.py | ||
test_devspec.py | ||
test_manager.py | ||
test_request.py | ||
test_stats.py | ||
test_utils.py | ||
test_whitelist.py |