From 8ab4baef29486d76d0176cac3f76027b56003024 Mon Sep 17 00:00:00 2001 From: Ard-Jan Aalberts Date: Mon, 11 May 2020 11:46:03 +0200 Subject: [PATCH] Fixed early-return bug. Setting properties call seems to throw an error when called with Docker. Removed return should fix this problem. --- contentful/resource_contentful_asset.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contentful/resource_contentful_asset.go b/contentful/resource_contentful_asset.go index 71e57e4..af34fd9 100644 --- a/contentful/resource_contentful_asset.go +++ b/contentful/resource_contentful_asset.go @@ -306,9 +306,7 @@ func setAssetState(d *schema.ResourceData, m interface{}) (err error) { err = client.Assets.Unarchive(spaceID, asset) } - if err := setAssetProperties(d, asset); err != nil { - return err - } + err = setAssetProperties(d, asset) return err }