From 016fc1b89784ada6b4d34afa8919977afedaa037 Mon Sep 17 00:00:00 2001 From: Olivier Bazoud Date: Fri, 10 Feb 2017 15:22:34 +0100 Subject: [PATCH] Fix critical checks --- bin/check-topics-name.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/check-topics-name.rb b/bin/check-topics-name.rb index 443b9c5..f956923 100755 --- a/bin/check-topics-name.rb +++ b/bin/check-topics-name.rb @@ -50,8 +50,8 @@ def run topics = z.get_children(path: '/brokers/topics')[:children].sort - critical "Topics '#{config[:name] - topics}' not found" if (config[:name] - topics).empty? - critical "Topics '#{topics - config[:name]}' not checked" if (topics - config[:name]).empty? + critical "Topics '#{config[:name] - topics}' not found" unless (config[:name] - topics).empty? + critical "Topics '#{topics - config[:name]}' not checked" unless (topics - config[:name]).empty? ok rescue => e