diff --git a/scripts/gnt-cluster b/scripts/gnt-cluster index 928e0ac04e914937295a60092b9162aa98f729a0..b0309c08c8105a60ff9c77dec6422a5f666de24f 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