Revert "provider/aws: fix ECS service CheckDestroy in tests"
This reverts commit 47f8b0cd79
.
cc @phinze
This commit is contained in:
parent
9a625427ca
commit
b7ed0e1c80
|
@ -6,7 +6,6 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/service/ecs"
|
||||
"github.com/hashicorp/terraform/helper/resource"
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
|
@ -235,10 +234,6 @@ func testAccCheckAWSEcsServiceDestroy(s *terraform.State) error {
|
|||
Cluster: aws.String(rs.Primary.Attributes["cluster"]),
|
||||
})
|
||||
|
||||
if awserr, ok := err.(awserr.Error); ok && awserr.Code() == "ClusterNotFoundException" {
|
||||
continue
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
if len(out.Services) > 0 {
|
||||
var activeServices []*ecs.Service
|
||||
|
|
Loading…
Reference in New Issue