Commit e0508c86 authored by Guido Trotter's avatar Guido Trotter
Browse files

Fix a couple of style mistakes


Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 40167d65
...@@ -478,12 +478,15 @@ def VerifyCluster(opts, args): ...@@ -478,12 +478,15 @@ def VerifyCluster(opts, args):
verbose=opts.verbose, verbose=opts.verbose,
error_codes=opts.error_codes, error_codes=opts.error_codes,
debug_simulate_errors=simulate) debug_simulate_errors=simulate)
jex.QueueJob('group ' + group, op) jex.QueueJob("group " + group, op)
results = jex.GetResults() results = jex.GetResults()
success &= compat.all(r[1][0] for r in results) 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): def VerifyDisks(opts, args):
......
...@@ -1406,7 +1406,6 @@ class LUClusterVerifyConfig(NoHooksLU, _VerifyErrors): ...@@ -1406,7 +1406,6 @@ class LUClusterVerifyConfig(NoHooksLU, _VerifyErrors):
"""Verifies the cluster config. """Verifies the cluster config.
""" """
REQ_BGL = False REQ_BGL = False
def _VerifyHVP(self, hvp_data): def _VerifyHVP(self, hvp_data):
...@@ -1492,7 +1491,6 @@ class LUClusterVerifyGroup(LogicalUnit, _VerifyErrors): ...@@ -1492,7 +1491,6 @@ class LUClusterVerifyGroup(LogicalUnit, _VerifyErrors):
"""Verifies the status of a node group. """Verifies the status of a node group.
""" """
HPATH = "cluster-verify" HPATH = "cluster-verify"
HTYPE = constants.HTYPE_CLUSTER HTYPE = constants.HTYPE_CLUSTER
REQ_BGL = False REQ_BGL = False
......
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