From e68c7921e2cc0959284b86f6ccd2b823439e5654 Mon Sep 17 00:00:00 2001 From: John Hanrahan Date: Tue, 9 Mar 2021 12:18:06 -0800 Subject: [PATCH] fix build --- provider/resource_corp_signal_tag.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/provider/resource_corp_signal_tag.go b/provider/resource_corp_signal_tag.go index 7d6f420..f5b8e8e 100644 --- a/provider/resource_corp_signal_tag.go +++ b/provider/resource_corp_signal_tag.go @@ -4,7 +4,6 @@ import ( "fmt" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/signalsciences/go-sigsci" - "reflect" ) //TODO maybe rename to corp tag @@ -71,16 +70,11 @@ func resourceCorpSignalTagUpdate(d *schema.ResourceData, m interface{}) error { pm := m.(providerMetadata) sc := pm.Client corp := pm.Corp - before, err := sc.GetCorpSignalTagByID(corp, d.Id()) - if err != nil { - d.SetId("") - return fmt.Errorf("%s. Could not find signaltag to update with ID %s in corp %s", err.Error(), d.Id(), corp) - } updateSignalTagBody := sigsci.UpdateSignalTagBody{ Description: d.Get("description").(string), } - _, err = sc.UpdateCorpSignalTagByID(corp, d.Id(), updateSignalTagBody) + _, err := sc.UpdateCorpSignalTagByID(corp, d.Id(), updateSignalTagBody) if err != nil { return fmt.Errorf("%s. Could not update signaltag with ID %s in corp %s", err.Error(), d.Id(), corp) }