From e0508c860406f9553a218891ff21b5b53a4ccb06 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Fri, 20 May 2011 15:20:25 +0100 Subject: [PATCH] Fix a couple of style mistakes Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/client/gnt_cluster.py | 7 +++++-- lib/cmdlib.py | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/client/gnt_cluster.py b/lib/client/gnt_cluster.py index dec37dc1b..494517870 100644 --- a/lib/client/gnt_cluster.py +++ b/lib/client/gnt_cluster.py @@ -478,12 +478,15 @@ def VerifyCluster(opts, args): verbose=opts.verbose, error_codes=opts.error_codes, debug_simulate_errors=simulate) - jex.QueueJob('group ' + group, op) + jex.QueueJob("group " + group, op) results = jex.GetResults() success &= compat.all(r[1][0] for r in results) - return (not success and 1 or 0) + if success: + return constants.EXIT_SUCCESS + else: + return constants.EXIT_FAILURE def VerifyDisks(opts, args): diff --git a/lib/cmdlib.py b/lib/cmdlib.py index bdcc2feba..98a056c4f 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -1406,7 +1406,6 @@ class LUClusterVerifyConfig(NoHooksLU, _VerifyErrors): """Verifies the cluster config. """ - REQ_BGL = False def _VerifyHVP(self, hvp_data): @@ -1492,7 +1491,6 @@ class LUClusterVerifyGroup(LogicalUnit, _VerifyErrors): """Verifies the status of a node group. """ - HPATH = "cluster-verify" HTYPE = constants.HTYPE_CLUSTER REQ_BGL = False -- GitLab