lib/fog/rackspace/models/load_balancers/load_balancers.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/rackspace/models/load_balancers/load_balancers.rb in fog-maestrodev-1.8.0.20130109172219

- old
+ new

@@ -8,15 +8,15 @@ class LoadBalancers < Fog::Collection model Fog::Rackspace::LoadBalancers::LoadBalancer def all - data = connection.list_load_balancers.body['loadBalancers'] + data = service.list_load_balancers.body['loadBalancers'] load(data) end def get(load_balancer_id) - if load_balancer = connection.get_load_balancer(load_balancer_id).body['loadBalancer'] + if load_balancer = service.get_load_balancer(load_balancer_id).body['loadBalancer'] new(load_balancer) end rescue Fog::Rackspace::LoadBalancers::NotFound nil end