Commit 5ec4b9d2 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

gnt-backup: Pass error code to OpPrereqError

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent 07783cde
......@@ -75,7 +75,8 @@ def ExportInstance(opts, args):
ignore_remove_failures = opts.ignore_remove_failures
if not opts.node:
raise errors.OpPrereqError("Target node must be specified")
raise errors.OpPrereqError("Target node must be specified",
op = opcodes.OpExportInstance(instance_name=args[0],
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