Fix a mis-formatted log message
There was an error in thinking that we can pass a tuple to log a message. Corrected this error. Change-Id: I45a2512f2dc50d6cacc646321d26c2f1c5713137
This commit is contained in:
parent
e87d039111
commit
6d84d9642a
@ -846,9 +846,8 @@ class GenericHardwareManager(HardwareManager):
|
||||
try:
|
||||
utils.execute(*args)
|
||||
except (processutils.ProcessExecutionError, OSError) as e:
|
||||
msg = ("Erasing block device %(dev)s failed with error %(err)s ",
|
||||
{'dev': block_device.name, 'err': e})
|
||||
LOG.error(msg)
|
||||
msg = "Erasing block device %(dev)s failed with error %(err)s"
|
||||
LOG.error(msg, {'dev': block_device.name, 'err': e})
|
||||
return False
|
||||
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user