Skip to content

Commit

Permalink
Merge pull request #13 from obazoud/fix
Browse files Browse the repository at this point in the history
Fix critical checks
  • Loading branch information
obazoud committed Feb 10, 2017
2 parents a69c403 + 016fc1b commit fd10623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/check-topics-name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd10623

Please sign in to comment.