From b940159d8b0b89ae35da1ece121f6f59e16cb9e1 Mon Sep 17 00:00:00 2001 From: ArcturusZhang Date: Sun, 7 Feb 2021 13:23:14 +0800 Subject: [PATCH] return nil instead of return err --- azurerm/internal/sdk/wrapper_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/sdk/wrapper_resource.go b/azurerm/internal/sdk/wrapper_resource.go index 40e047a7b7fb..9a231ade5ee3 100644 --- a/azurerm/internal/sdk/wrapper_resource.go +++ b/azurerm/internal/sdk/wrapper_resource.go @@ -92,7 +92,7 @@ func (rw *ResourceWrapper) Resource() (*schema.Resource, error) { return fmt.Errorf(out) } - return err + return nil }, func(d *schema.ResourceData, meta interface{}) ([]*schema.ResourceData, error) { if v, ok := rw.resource.(ResourceWithCustomImporter); ok { ctx, metaData := runArgs(d, meta, rw.logger)