bin/check-cassandra-schema.rb in sensu-plugins-cassandra-0.0.4 vs bin/check-cassandra-schema.rb in sensu-plugins-cassandra-0.0.5
- old
+ new
@@ -61,10 +61,10 @@
critical(out)
end
bad_nodes = []
# #YELLOW
- out.each_line do |line| # rubocop:disable Style/Next
+ out.each_line do |line|
if m = line.match(/\s+UNREACHABLE:\s+(.*)\[(.*)\]\s+$/)# rubocop:disable all
bad_nodes << m[2]
next
end
if bad_nodes.count > 0