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 <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
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",
errors.ECODE_INVAL)
op = opcodes.OpExportInstance(instance_name=args[0],
target_node=opts.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