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

fixed parser to parse target groups from autoscaling group description

This commit is contained in:
Robert von Massow 2016-10-14 13:40:04 +02:00
parent 6773128a07
commit 92a9709387

View file

@ -21,7 +21,8 @@ module Fog
'LoadBalancerNames' => [],
'SuspendedProcesses' => [],
'Tags' => [],
'TerminationPolicies' => []
'TerminationPolicies' => [],
'TargetGroupARNs' => []
}
end
@ -59,6 +60,8 @@ module Fog
@in_tags = true
when 'TerminationPolicies'
@in_termination_policies = true
when 'TargetGroupARNs'
@in_target_groups = true
end
end
@ -83,6 +86,8 @@ module Fog
reset_tag
elsif @in_termination_policies
@auto_scaling_group['TerminationPolicies'] << value
elsif @in_target_groups
@auto_scaling_group['TargetGroupARNs'] << value
else
@results['AutoScalingGroups'] << @auto_scaling_group
reset_auto_scaling_group
@ -147,6 +152,8 @@ module Fog
when 'DescribeAutoScalingGroupsResponse'
@response['DescribeAutoScalingGroupsResult'] = @results
when 'TargetGroupARNs'
@in_target_groups = false
end
end
end