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

Add ELBv2 new attributes on describe_load_balancers parser

This commit is contained in:
KevinLoiseau 2019-03-27 09:36:21 +01:00
parent 985d7b37b9
commit 138da3b79f
No known key found for this signature in database
GPG key ID: 709159A779B96CC3

View file

@ -101,7 +101,8 @@ module Fog
@listener_description['Listener'][name] = value.to_i @listener_description['Listener'][name] = value.to_i
end end
when 'CanonicalHostedZoneName', 'CanonicalHostedZoneNameID', 'LoadBalancerName', 'DNSName', 'Scheme' when 'CanonicalHostedZoneName', 'CanonicalHostedZoneNameID', 'LoadBalancerName', 'DNSName', 'Scheme', 'Type', 'State',
'LoadBalancerArn', 'IpAddressType', 'CanonicalHostedZoneId'
@load_balancer[name] = value @load_balancer[name] = value
when 'CreatedTime' when 'CreatedTime'
@load_balancer[name] = Time.parse(value) @load_balancer[name] = Time.parse(value)
@ -119,9 +120,8 @@ module Fog
@in_instances = false @in_instances = false
when 'InstanceId' when 'InstanceId'
@load_balancer['Instances'] << value @load_balancer['Instances'] << value
when 'VPCId' when 'VPCId', 'VpcId'
@load_balancer[name] = value @load_balancer[name] = value
when 'AvailabilityZones' when 'AvailabilityZones'
@in_availability_zones = false @in_availability_zones = false
when 'SecurityGroups' when 'SecurityGroups'