Skip to content

Commit

Permalink
Merge pull request #3674 from terraform-providers/t-aws_redshift_clus…
Browse files Browse the repository at this point in the history
…ter-allow-bypass

tests/resource/aws_redshift_cluster: Do not retry deletion during sweep
  • Loading branch information
bflad authored Mar 8, 2018
2 parents cfbac15 + 32e04aa commit d0de0e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/resource_aws_redshift_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ func testSweepRedshiftClusters(region string) error {
continue
}

_, err := deleteAwsRedshiftCluster(&redshift.DeleteClusterInput{
input := &redshift.DeleteClusterInput{
ClusterIdentifier: c.ClusterIdentifier,
SkipFinalClusterSnapshot: aws.Bool(true),
}, conn)
}
_, err := conn.DeleteCluster(input)
if err != nil {
log.Printf("[ERROR] Failed deleting Redshift cluster (%s): %s",
*c.ClusterIdentifier, err)
Expand Down

0 comments on commit d0de0e4

Please sign in to comment.