From 8644772fb0a0ee55c4f8ff0c324cc540c2d2a8b2 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Sun, 26 Apr 2020 17:12:01 -0400 Subject: [PATCH] r/aws_glue_crawler: Remove extraneous Exists function. --- aws/resource_aws_glue_crawler.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/aws/resource_aws_glue_crawler.go b/aws/resource_aws_glue_crawler.go index 8d7e16adc25..6b96ea65bb7 100644 --- a/aws/resource_aws_glue_crawler.go +++ b/aws/resource_aws_glue_crawler.go @@ -22,7 +22,6 @@ func resourceAwsGlueCrawler() *schema.Resource { Read: resourceAwsGlueCrawlerRead, Update: resourceAwsGlueCrawlerUpdate, Delete: resourceAwsGlueCrawlerDelete, - Exists: resourceAwsGlueCrawlerExists, Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, @@ -662,20 +661,3 @@ func resourceAwsGlueCrawlerDelete(d *schema.ResourceData, meta interface{}) erro } return nil } - -func resourceAwsGlueCrawlerExists(d *schema.ResourceData, meta interface{}) (bool, error) { - glueConn := meta.(*AWSClient).glueconn - - input := &glue.GetCrawlerInput{ - Name: aws.String(d.Id()), - } - - _, err := glueConn.GetCrawler(input) - if err != nil { - if isAWSErr(err, glue.ErrCodeEntityNotFoundException, "") { - return false, nil - } - return false, err - } - return true, nil -}