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:
parent
3c981d29f9
commit
2252f2d4ae
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue