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:
John L. Villalovos 2017-10-10 15:16:40 -07:00
parent e87d039111
commit 6d84d9642a

View File

@ -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