Merge "Correct formatting of a warning when lshw cannot be run"

This commit is contained in:
Zuul 2019-06-27 05:58:00 +00:00 committed by Gerrit Code Review
commit 8fd016e505
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,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', ''),