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:
parent
6773128a07
commit
92a9709387
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue