mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #2001 from bgentry/asg-policy-min-adjustment
[AWS|ASG] parse ScalingPolicy MinAdjustmentStep
This commit is contained in:
commit
f42aeec832
1 changed files with 5 additions and 5 deletions
|
@ -20,13 +20,13 @@ module Fog
|
|||
def reset_alarm
|
||||
@alarm = {}
|
||||
end
|
||||
|
||||
|
||||
def start_element(name, attrs = [])
|
||||
super
|
||||
case name
|
||||
when 'Alarms'
|
||||
@in_alarms = true
|
||||
end
|
||||
@in_alarms = true
|
||||
end
|
||||
end
|
||||
|
||||
def end_element(name)
|
||||
|
@ -36,7 +36,7 @@ module Fog
|
|||
|
||||
when 'AdjustmentType', 'AutoScalingGroupName', 'PolicyARN', 'PolicyName'
|
||||
@scaling_policy[name] = value
|
||||
when 'Cooldown', 'ScalingAdjustment'
|
||||
when 'Cooldown', 'MinAdjustmentStep', 'ScalingAdjustment'
|
||||
@scaling_policy[name] = value.to_i
|
||||
|
||||
when 'NextToken'
|
||||
|
@ -47,7 +47,7 @@ module Fog
|
|||
|
||||
when 'DescribePoliciesResponse'
|
||||
@response['DescribePoliciesResult'] = @results
|
||||
|
||||
|
||||
when 'Alarms'
|
||||
@in_alarms = false
|
||||
when 'member'
|
||||
|
|
Loading…
Reference in a new issue