bin/check-sensor.rb in sensu-plugins-ipmi-0.0.2 vs bin/check-sensor.rb in sensu-plugins-ipmi-1.0.0
- old
+ new
@@ -106,10 +106,10 @@
unknown "An unknown error occured: #{e.inspect}"
end
def run
# #YELLOW
- conn.sensors.list.each do |sensor| # rubocop:disable Style/Next
+ conn.sensors.list.each do |sensor|
if config[:sensor] != 'all'
next if sensor[1][:name] != config[:sensor]
end
name = sensor[1][:name]
value = sensor[1][:value]