lib/awspec/helper/finder/elb.rb in awspec-0.26.2 vs lib/awspec/helper/finder/elb.rb in awspec-0.27.0

- old
+ new

@@ -1,18 +1,18 @@ module Awspec::Helper module Finder module Elb def find_elb(id) - res = @elb_client.describe_load_balancers({ - load_balancer_names: [id] - }) + res = elb_client.describe_load_balancers({ + load_balancer_names: [id] + }) return res[:load_balancer_descriptions].first if res[:load_balancer_descriptions].count == 1 rescue return nil end def select_elb_by_vpc_id(vpc_id) - res = @elb_client.describe_load_balancers + res = elb_client.describe_load_balancers res[:load_balancer_descriptions].select do |lb| lb.vpc_id == vpc_id end end end