Commit c7cdfc90 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix an error-handling case

There is a mistake in handling grow-disk for an invalid disk. This patch
fixes it.

Reviewed-by: imsnah
parent eb65d354
......@@ -3982,7 +3982,7 @@ class LUGrowDisk(LogicalUnit):
if instance.FindDisk(self.op.disk) is None:
raise errors.OpPrereqError("Disk '%s' not found for instance '%s'" %
(name, instance.name))
(self.op.disk, instance.name))
nodenames = [instance.primary_node] + list(instance.secondary_nodes)
nodeinfo = rpc.call_node_info(nodenames, 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