diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-06-26 11:37:07 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-06-27 10:24:13 +0000 |
commit | 7aeaf1bb456538f62c64a8613d51e00daf9cf238 (patch) | |
tree | fd20c8ba821b733f3d95a345633900ddd85d8cd6 | |
parent | 78ba0d1c30776607c1563bae847c062622ff12b7 (diff) | |
download | ironic-python-agent-7aeaf1bb456538f62c64a8613d51e00daf9cf238.tar.gz |
Correct formatting of a warning when lshw cannot be run
Change-Id: I7c55aee4b3b52cb414a595cf548e1f22e954f619
(cherry picked from commit 69064a8610134f7e6777083375487f15f7dbbc7b)
-rw-r--r-- | ironic_python_agent/hardware.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index 87f05f9c..0983f344 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -765,7 +765,7 @@ class GenericHardwareManager(HardwareManager): try: sys_dict = _get_system_lshw_dict() except (processutils.ProcessExecutionError, OSError, ValueError) as e: - LOG.warning('Could not retrieve vendor info from lshw: %e', e) + LOG.warning('Could not retrieve vendor info from lshw: %s', e) sys_dict = {} return SystemVendorInfo(product_name=sys_dict.get('product', ''), serial_number=sys_dict.get('serial', ''), |