The first argument to _ErrorIf should always be True in this case.

Signed-off-by: Michael Hanselmann <[email protected]>
---
 lib/cmdlib.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index f32a58d..519665c 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -1444,7 +1444,7 @@ class LUVerifyCluster(LogicalUnit):
       try:
         ntime_merged = utils.MergeTime(ntime)
       except (ValueError, TypeError):
-        _ErrorIf(test, self.ENODETIME, node, "Node returned invalid time")
+        _ErrorIf(True, self.ENODETIME, node, "Node returned invalid time")
 
       if ntime_merged < (nvinfo_starttime - constants.NODE_MAX_CLOCK_SKEW):
         ntime_diff = abs(nvinfo_starttime - ntime_merged)
-- 
1.6.6

Reply via email to