Commit 2e668b38 authored by Guido Trotter's avatar Guido Trotter
Browse files

Raise on invalid gnt-cluster queue commands

 # gnt-cluster queue foo
 Failure: prerequisites not met for this operation:
 Command 'foo' is not valid.

Reviewed-by: iustinp
parent 19498d6c
......@@ -506,6 +506,9 @@ def QueueOps(opts, args):
else:
val = "unset"
ToStdout("The drain flag is %s" % val)
else:
raise errors.OpPrereqError("Command '%s' is not valid." % command)
return 0
# this is an option common to more than one command, so we declare
......
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