1
0
Fork 0
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:
Dan Peterson 2013-07-31 02:51:49 -07:00
commit f42aeec832

View file

@ -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'