summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2019-06-26 11:37:07 +0200
committerDmitry Tantsur <dtantsur@protonmail.com>2019-06-27 10:24:03 +0000
commit00d90387227165efa136441d5487a061e8ab2622 (patch)
tree9d55c0786067e3f436789f35c85585429073e04b
parenta29a27910a64ee24ce925438a7c692ee0e4b10de (diff)
downloadironic-python-agent-00d90387227165efa136441d5487a061e8ab2622.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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py
index 42561c25..4430a90a 100644
--- a/ironic_python_agent/hardware.py
+++ b/ironic_python_agent/hardware.py
@@ -822,7 +822,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', ''),