bin/check-elb-certs.rb in sensu-plugins-aws-3.2.0 vs bin/check-elb-certs.rb in sensu-plugins-aws-3.2.1
- old
+ new
@@ -125,10 +125,10 @@
end
rescue => e
unknown "An error occurred processing AWS ELB API: #{e.message}"
end
- if !critical_message.length.empty?
+ if !critical_message.empty?
message = cert_message(critical_message.length, 'expiring within', config[:crit_under])
message += ': ' + critical_message.sort.join(' ')
critical message
elsif !warning_message.empty?
message = cert_message(warning_message.length, 'expiring within', config[:warn_under])