Commit 268b8e42 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix a message in LUExportInstance

We never verified the node name before, so this is most likely not a
non-retrieve but a wrong name case.

Reviewed-by: ultrotter
parent e0e31530
......@@ -5139,8 +5139,9 @@ class LUExportInstance(LogicalUnit):
self.dst_node = self.cfg.GetNodeInfo(
self.cfg.ExpandNodeName(self.op.target_node))
assert self.dst_node is not None, \
"Cannot retrieve locked node %s" % self.op.target_node
if self.dst_node is None:
# This is wrong node name, not a non-locked node
raise errors.OpPrereqError("Wrong node name %s" % self.op.target_node)
# instance disk type verification
for disk in self.instance.disks:
......
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