Skip to content

Commit 1a5f824

Browse files
authored
fix(webhosting): read empty tags (scaleway#2571)
1 parent 0bbebc6 commit 1a5f824

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/services/webhosting/webhosting.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,7 @@ func resourceWebhostingRead(ctx context.Context, d *schema.ResourceData, m inter
225225
return diag.FromErr(err)
226226
}
227227

228-
if len(webhostingResponse.Tags) > 0 {
229-
_ = d.Set("tags", webhostingResponse.Tags)
230-
}
231-
228+
_ = d.Set("tags", webhostingResponse.Tags)
232229
_ = d.Set("offer_id", regional.NewIDString(region, webhostingResponse.OfferID))
233230
_ = d.Set("domain", webhostingResponse.Domain)
234231
_ = d.Set("created_at", types.FlattenTime(webhostingResponse.CreatedAt))

0 commit comments

Comments
 (0)