Commit 34290825 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUVerifyCluster: Return boolean indication success

Reviewed-by: schreiberal
parent 9894ece7
......@@ -855,7 +855,7 @@ class LUVerifyCluster(LogicalUnit):
feedback_fn(" - NOTICE: %d non-redundant instance(s) found."
% len(i_non_redundant))
return int(bad)
return not bad
def HooksCallBack(self, phase, hooks_results, feedback_fn, lu_result):
"""Analize the post-hooks' result, handle it, and send some
......@@ -221,8 +221,10 @@ def VerifyCluster(opts, args):
if opts.skip_nplusone_mem:
op = opcodes.OpVerifyCluster(skip_checks=skip_checks)
result = SubmitOpCode(op)
return result
if SubmitOpCode(op):
return 0
return 1
def VerifyDisks(opts, args):
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