From 420e13d2f29eb24e31606864a556a9825f44c213 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 May 2016 13:10:36 -0700 Subject: [PATCH] providers/aws: eip uses passthrough importstate --- builtin/providers/aws/resource_aws_eip.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/builtin/providers/aws/resource_aws_eip.go b/builtin/providers/aws/resource_aws_eip.go index 819c4a49f..89b0094fd 100644 --- a/builtin/providers/aws/resource_aws_eip.go +++ b/builtin/providers/aws/resource_aws_eip.go @@ -20,7 +20,7 @@ func resourceAwsEip() *schema.Resource { Update: resourceAwsEipUpdate, Delete: resourceAwsEipDelete, Importer: &schema.ResourceImporter{ - State: resourceAwsEipImportState, + State: schema.ImportStatePassthrough, }, Schema: map[string]*schema.Schema{ @@ -292,12 +292,6 @@ func resourceAwsEipDelete(d *schema.ResourceData, meta interface{}) error { }) } -func resourceAwsEipImportState( - d *schema.ResourceData, - meta interface{}) ([]*schema.ResourceData, error) { - return []*schema.ResourceData{d}, nil -} - func resourceAwsEipDomain(d *schema.ResourceData) string { if v, ok := d.GetOk("domain"); ok { return v.(string)