Commit 6d7b472a authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix typo that makes cluster verify to ignore hooks



The return from LUVerifyCluster should be True (or equivalent) for pass,
and False (or equivalent) for fail. The HooksCallBack function uses '1'
(= True) when a hook fails, which is exactly the opposite of what we
want - it will make failed hooks to reset the result to success,
overriding actual failures in cluster verify.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 6819dc49
......@@ -1629,7 +1629,7 @@ class LUVerifyCluster(LogicalUnit):
if test:
output = indent_re.sub(' ', output)
feedback_fn("%s" % output)
lu_result = 1
lu_result = 0
return lu_result
......
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