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

Fix gnt-backup export with short names

We need to pass the fully-qualified node to _CheckNodeOnline, not the short
one.

Reviewed-by: imsnah
parent 320eda24
......@@ -5859,7 +5859,7 @@ class LUExportInstance(LogicalUnit):
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)
_CheckNodeOnline(self, self.op.target_node)
_CheckNodeOnline(self, self.dst_node.name)
# 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