Merge pull request #437 from jeckhart/fix-autoscaling-build-break
Fix build breaks from latest goamz
This commit is contained in:
commit
c2314721c3
|
@ -107,8 +107,8 @@ func testAccCheckAWSAutoScalingGroupDestroy(s *terraform.State) error {
|
|||
|
||||
func testAccCheckAWSAutoScalingGroupAttributes(group *autoscaling.AutoScalingGroup) resource.TestCheckFunc {
|
||||
return func(s *terraform.State) error {
|
||||
if group.AvailabilityZones[0].AvailabilityZone != "us-west-2a" {
|
||||
return fmt.Errorf("Bad availability_zones: %s", group.AvailabilityZones[0].AvailabilityZone)
|
||||
if group.AvailabilityZones[0] != "us-west-2a" {
|
||||
return fmt.Errorf("Bad availability_zones: %s", group.AvailabilityZones[0])
|
||||
}
|
||||
|
||||
if group.Name != "foobar3-terraform-test" {
|
||||
|
@ -145,8 +145,8 @@ func testAccCheckAWSAutoScalingGroupAttributes(group *autoscaling.AutoScalingGro
|
|||
|
||||
func testAccCheckAWSAutoScalingGroupAttributesLoadBalancer(group *autoscaling.AutoScalingGroup) resource.TestCheckFunc {
|
||||
return func(s *terraform.State) error {
|
||||
if group.LoadBalancerNames[0].LoadBalancerName != "foobar-terraform-test" {
|
||||
return fmt.Errorf("Bad load_balancers: %s", group.LoadBalancerNames[0].LoadBalancerName)
|
||||
if group.LoadBalancerNames[0] != "foobar-terraform-test" {
|
||||
return fmt.Errorf("Bad load_balancers: %s", group.LoadBalancerNames[0])
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue