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:23 +0000 |
commit | 64548591bc87f36228414bb777825c38e5346335 (patch) | |
tree | 39ff7929ffcd154c6cd1b7defaab6d82268e2f1d | |
parent | bf705dba9964c230890bdf2dd1ded79c5d3e7152 (diff) | |
download | ironic-python-agent-64548591bc87f36228414bb777825c38e5346335.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 61c3a68d..c4a16f08 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -754,7 +754,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', ''), |