mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|auto_scaling] expose termination policies in group model
- also make the initial DefaultCooldown value reflect reality
This commit is contained in:
parent
f2dbf7efb6
commit
7c9a487da1
1 changed files with 4 additions and 2 deletions
|
@ -20,11 +20,12 @@ module Fog
|
|||
attribute :min_size, :aliases => 'MinSize'
|
||||
attribute :placement_group, :aliases => 'PlacementGroup'
|
||||
attribute :suspended_processes, :aliases => 'SuspendedProcesses'
|
||||
attribute :vpc_zone_identifier, :aliases => 'VPCZoneIdentifier'
|
||||
attribute :tags, :aliases => 'Tags'
|
||||
attribute :termination_policies, :aliases => 'TerminationPolicies'
|
||||
attribute :vpc_zone_identifier, :aliases => 'VPCZoneIdentifier'
|
||||
|
||||
def initialize(attributes={})
|
||||
attributes['DefaultCooldown'] ||= 0
|
||||
attributes['DefaultCooldown'] ||= 300
|
||||
attributes['DesiredCapacity'] ||= 0
|
||||
attributes['EnabledMetrics'] ||= []
|
||||
attributes['HealthCheckGracePeriod'] ||= 0
|
||||
|
@ -35,6 +36,7 @@ module Fog
|
|||
attributes['MinSize'] ||= 0
|
||||
attributes['SuspendedProcesses'] ||= []
|
||||
attributes['Tags'] ||= []
|
||||
attributes['TerminationPolicies'] ||= ['Default']
|
||||
super
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue