Skip to content

Commit

Permalink
resource/aws_emr_cluster: Use DescribeCluster to check is cluster ter…
Browse files Browse the repository at this point in the history
…minated
  • Loading branch information
andrei-ilyin-mh committed Mar 26, 2020
1 parent 124b0f2 commit dd7d5d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions aws/resource_aws_emr_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1540,10 +1540,7 @@ func testAccCheckAWSEmrDestroy(s *terraform.State) error {
}

if !isAWSErr(err, "InvalidRequestException", "does not exist") {
if providerErr, ok := err.(awserr.Error); !ok {
log.Printf("[ERROR] %v", providerErr)
return err
}
return err
}
}
}
Expand Down

0 comments on commit dd7d5d4

Please sign in to comment.