Extend root device hints to support device name
This patch is extending the root device hints to also look at the device name. This patch also refactors the tests for root device hints making it easier to test a different hint per test. Change-Id: I48d6456c75bbe6ddf16ac6561e5461ca51eb9c37 Partial-Bug: #1526732
This commit is contained in:
ironic_python_agent
releasenotes/notes
@ -461,7 +461,8 @@ class GenericHardwareManager(HardwareManager):
|
||||
|
||||
def check_device_attrs(device):
|
||||
for key in ('model', 'wwn', 'serial', 'vendor',
|
||||
'wwn_with_extension', 'wwn_vendor_extension'):
|
||||
'wwn_with_extension', 'wwn_vendor_extension',
|
||||
'name'):
|
||||
if key not in root_device_hints:
|
||||
continue
|
||||
|
||||
|
Reference in New Issue
Block a user