From 2e668b381d0ef63336cae0adc2b4fd7344715950 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Fri, 20 Mar 2009 13:06:29 +0000 Subject: [PATCH] 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 --- scripts/gnt-cluster | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster index 928e0ac..b0309c0 100755 --- a/scripts/gnt-cluster +++ b/scripts/gnt-cluster @@ -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 -- 1.7.10.4