summaryrefslogtreecommitdiff
path: root/ironic_python_agent/hardware.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic_python_agent/hardware.py')
-rw-r--r--ironic_python_agent/hardware.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py
index e58da8c6..abda1f1a 100644
--- a/ironic_python_agent/hardware.py
+++ b/ironic_python_agent/hardware.py
@@ -1100,8 +1100,13 @@ class GenericHardwareManager(HardwareManager):
interface_names=iface_names)
for iface_name in iface_names:
- result = dispatch_to_managers(
- 'get_interface_info', interface_name=iface_name)
+ try:
+ result = dispatch_to_managers(
+ 'get_interface_info', interface_name=iface_name)
+ except errors.HardwareManagerMethodNotFound:
+ LOG.warning('No hardware manager was able to handle '
+ 'interface %s', iface_name)
+ continue
result.lldp = self._get_lldp_data(iface_name)
network_interfaces_list.append(result)