Fix wrong result of filter_device in the base interface

Returning None means "exclude any device". It still works if the only
hardware manager is GenericHardwareManager, but enabling any more
without overriding filter_device causes all devices to get filtered.
Change-Id: I25eb028baa1b9182caee07a0b935e9fa107999a8
Closes-Bug: #2117234
Signed-off-by: Dmitry Tantsur <dtantsur@protonmail.com>
This commit is contained in:
Dmitry Tantsur
2025年07月21日 13:49:03 +02:00
parent 780cf3615d
commit 0ad2685ce4

View File

@@ -1374,6 +1374,7 @@ class HardwareManager(object, metaclass=abc.ABCMeta):
other hardware managers.
:return: The modified device or None to exclude it.
"""
raise errors.IncompatibleHardwareMethodError()
class GenericHardwareManager(HardwareManager):
Reference in New Issue
openstack/ironic-python-agent
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.