Merge pull request #437 from jeckhart/fix-autoscaling-build-break

Fix build breaks from latest goamz
This commit is contained in:
Mitchell Hashimoto 2014-10-16 22:24:34 -07:00
commit c2314721c3
1 changed files with 4 additions and 4 deletions

View File

@ -107,8 +107,8 @@ func testAccCheckAWSAutoScalingGroupDestroy(s *terraform.State) error {
func testAccCheckAWSAutoScalingGroupAttributes(group *autoscaling.AutoScalingGroup) resource.TestCheckFunc { func testAccCheckAWSAutoScalingGroupAttributes(group *autoscaling.AutoScalingGroup) resource.TestCheckFunc {
return func(s *terraform.State) error { return func(s *terraform.State) error {
if group.AvailabilityZones[0].AvailabilityZone != "us-west-2a" { if group.AvailabilityZones[0] != "us-west-2a" {
return fmt.Errorf("Bad availability_zones: %s", group.AvailabilityZones[0].AvailabilityZone) return fmt.Errorf("Bad availability_zones: %s", group.AvailabilityZones[0])
} }
if group.Name != "foobar3-terraform-test" { if group.Name != "foobar3-terraform-test" {
@ -145,8 +145,8 @@ func testAccCheckAWSAutoScalingGroupAttributes(group *autoscaling.AutoScalingGro
func testAccCheckAWSAutoScalingGroupAttributesLoadBalancer(group *autoscaling.AutoScalingGroup) resource.TestCheckFunc { func testAccCheckAWSAutoScalingGroupAttributesLoadBalancer(group *autoscaling.AutoScalingGroup) resource.TestCheckFunc {
return func(s *terraform.State) error { return func(s *terraform.State) error {
if group.LoadBalancerNames[0].LoadBalancerName != "foobar-terraform-test" { if group.LoadBalancerNames[0] != "foobar-terraform-test" {
return fmt.Errorf("Bad load_balancers: %s", group.LoadBalancerNames[0].LoadBalancerName) return fmt.Errorf("Bad load_balancers: %s", group.LoadBalancerNames[0])
} }
return nil return nil