1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fixed issues with loading all LB params

This commit is contained in:
Brian Hartsock 2011-07-10 16:58:27 -04:00
parent 3c981d29f9
commit 2252f2d4ae
2 changed files with 7 additions and 3 deletions

View file

@ -8,11 +8,11 @@ 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

View file

@ -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