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

Fix an error message

Detected by an 'Unused variable' warning.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarOlivier Tharan <>
parent 1122eb25
......@@ -4794,7 +4794,7 @@ class LUMoveInstance(LogicalUnit):
for idx, dsk in enumerate(instance.disks):
if dsk.dev_type not in (constants.LD_LV, constants.LD_FILE):
raise errors.OpPrereqError("Instance disk %d has a complex layout,"
" cannot copy", errors.ECODE_STATE)
" cannot copy" % idx, errors.ECODE_STATE)
_CheckNodeOnline(self, target_node)
_CheckNodeNotDrained(self, target_node)
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