Commit b62ddbe5 authored by Guido Trotter's avatar Guido Trotter
Browse files

Fix two pylint uninitialized variable errors

Reviewed-by: iustinp
parent c09f363f
......@@ -2280,7 +2280,7 @@ class FileStorage(BlockDev):
try:
f = open(dev_path, 'w')
except IOError, err:
raise BlockDeviceError("Could not create '%'" % err)
raise errors.BlockDeviceError("Could not create '%'" % err)
else:
f.truncate(size * 1024 * 1024)
f.close()
......
......@@ -3025,7 +3025,7 @@ def _CreateDisks(cfg, instance):
file_storage_dir)
if not result:
logger.Error("Could not connect to node '%s'" % inst.primary_node)
logger.Error("Could not connect to node '%s'" % instance.primary_node)
return False
if not result[0]:
......@@ -4396,7 +4396,7 @@ class LUExportInstance(LogicalUnit):
# shutdown the instance, but not the disks
if not rpc.call_instance_shutdown(src_node, instance):
raise errors.OpExecError("Could not shutdown instance %s on node %s" %
(instance.name, source_node))
(instance.name, src_node))
vgname = self.cfg.GetVGName()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment