From 7c9a487da1594dcb010583cf86207b3bc546ec46 Mon Sep 17 00:00:00 2001 From: Nick Osborn Date: Mon, 24 Sep 2012 00:15:14 +0100 Subject: [PATCH] [aws|auto_scaling] expose termination policies in group model - also make the initial DefaultCooldown value reflect reality --- lib/fog/aws/models/auto_scaling/group.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/fog/aws/models/auto_scaling/group.rb b/lib/fog/aws/models/auto_scaling/group.rb index 3f8d69c8f..3353bcdb0 100644 --- a/lib/fog/aws/models/auto_scaling/group.rb +++ b/lib/fog/aws/models/auto_scaling/group.rb @@ -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