Browse Source

Correct formatting of a warning when lshw cannot be run

Change-Id: I7c55aee4b3b52cb414a595cf548e1f22e954f619
(cherry picked from commit 69064a8610)
changes/82/667882/1
Dmitry Tantsur 2 months ago
parent
commit
64548591bc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ironic_python_agent/hardware.py

+ 1
- 1
ironic_python_agent/hardware.py View File

@@ -754,7 +754,7 @@ class GenericHardwareManager(HardwareManager):
754 754
         try:
755 755
             sys_dict = _get_system_lshw_dict()
756 756
         except (processutils.ProcessExecutionError, OSError, ValueError) as e:
757
-            LOG.warning('Could not retrieve vendor info from lshw: %e', e)
757
+            LOG.warning('Could not retrieve vendor info from lshw: %s', e)
758 758
             sys_dict = {}
759 759
         return SystemVendorInfo(product_name=sys_dict.get('product', ''),
760 760
                                 serial_number=sys_dict.get('serial', ''),

Loading…
Cancel
Save