bin/check-elb-nodes.rb in sensu-plugins-aws-1.2.0 vs bin/check-elb-nodes.rb in sensu-plugins-aws-2.0.0
- old
+ new
@@ -92,10 +92,10 @@
secret_access_key: config[:aws_secret_access_key],
region: config[:aws_region]
}
end
- def run # rubocop:disable all
+ def run
AWS.start_memoizing
elb = AWS::ELB.new aws_config
begin
instances = elb.load_balancers[config[:load_balancer]].instances.health