Correct formatting of a warning when lshw cannot be run
Change-Id: I7c55aee4b3b52cb414a595cf548e1f22e954f619
(cherry picked from commit 69064a8610
)
This commit is contained in:
parent
bf705dba99
commit
64548591bc
|
@ -754,7 +754,7 @@ class GenericHardwareManager(HardwareManager):
|
||||||
try:
|
try:
|
||||||
sys_dict = _get_system_lshw_dict()
|
sys_dict = _get_system_lshw_dict()
|
||||||
except (processutils.ProcessExecutionError, OSError, ValueError) as e:
|
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 = {}
|
sys_dict = {}
|
||||||
return SystemVendorInfo(product_name=sys_dict.get('product', ''),
|
return SystemVendorInfo(product_name=sys_dict.get('product', ''),
|
||||||
serial_number=sys_dict.get('serial', ''),
|
serial_number=sys_dict.get('serial', ''),
|
||||||
|
|
Loading…
Reference in New Issue