bin/metrics-haproxy.rb in sensu-plugins-haproxy-0.0.4 vs bin/metrics-haproxy.rb in sensu-plugins-haproxy-0.0.5

- old
+ new

@@ -123,9 +123,13 @@ return out rescue return nil end + def output(*args) + super(*args) unless args[1].nil? + end + def run #rubocop:disable all out = nil 1.upto(config[:retries]) do |_i| out = acquire_stats break unless out.to_s.length.zero?