diff --git a/lib/fog/rackspace/models/load_balancer.rb b/lib/fog/rackspace/models/load_balancer.rb index 4e5e0bbe9..a51933d9e 100644 --- a/lib/fog/rackspace/models/load_balancer.rb +++ b/lib/fog/rackspace/models/load_balancer.rb @@ -8,16 +8,16 @@ module Fog identity :id attribute :cluster - attribute :connection_logging + attribute :connection_logging, :aliases => 'connectionLogging' attribute :port attribute :protocol attribute :algorithm - attribute :virtual_ips + attribute :virtual_ips, :aliases => 'virtualIps' attribute :nodes attribute :created attribute :updated attribute :name - attribute :state, :aliases => 'status' + attribute :state, :aliases => 'status' def initialize(attributes={}) super diff --git a/lib/fog/rackspace/models/load_balancers.rb b/lib/fog/rackspace/models/load_balancers.rb index aab2005db..2712a7ff6 100644 --- a/lib/fog/rackspace/models/load_balancers.rb +++ b/lib/fog/rackspace/models/load_balancers.rb @@ -11,6 +11,10 @@ module Fog def all data = connection.list_load_balancers.body['loadBalancers'] + #TODO - Need to find a way to lazy load for performance. + data = data.collect do |lb| + connection.get_load_balancer(lb['id']).body['loadBalancer'] + end load(data) end