From ecbe54940e80e10f0495885549fa36bd6cf4d385 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Wed, 4 Feb 2015 09:56:59 -0600 Subject: [PATCH] expose ASG termination policies we support writing it but not reading it, which makes terraform a little confused about the whole deal. --- autoscaling/autoscaling.go | 1 + autoscaling/autoscaling_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/autoscaling/autoscaling.go b/autoscaling/autoscaling.go index bb53849e..013b0f19 100644 --- a/autoscaling/autoscaling.go +++ b/autoscaling/autoscaling.go @@ -135,6 +135,7 @@ type AutoScalingGroup struct { Status string `xml:"Status"` Tags []Tag `xml:"Tags>member"` VPCZoneIdentifier string `xml:"VPCZoneIdentifier"` + TerminationPolicies []string `xml:"TerminationPolicies>member"` } // ---------------------------------------------------------------------------- diff --git a/autoscaling/autoscaling_test.go b/autoscaling/autoscaling_test.go index 8cccdc2b..21199606 100644 --- a/autoscaling/autoscaling_test.go +++ b/autoscaling/autoscaling_test.go @@ -108,6 +108,7 @@ func (s *S) Test_DescribeAutoScalingGroups(c *C) { c.Assert(resp.RequestId, Equals, "0f02a07d-b677-11e2-9eb0-dd50EXAMPLE") c.Assert(resp.AutoScalingGroups[0].Name, Equals, "my-test-asg-lbs") c.Assert(resp.AutoScalingGroups[0].LaunchConfigurationName, Equals, "my-test-lc") + c.Assert(resp.AutoScalingGroups[0].TerminationPolicies[0], Equals, "Default") } func (s *S) Test_DescribeLaunchConfigurations(c *C) {