From 188e959f572565aa34cc6e02127b7352e9760e4a Mon Sep 17 00:00:00 2001 From: Maxmiller Alves Date: Thu, 25 Jul 2024 09:49:09 +0200 Subject: [PATCH] Fix GCS ilm tier region using prefix string instead of region string (#575) --- minio/resource_minio_ilm_tier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minio/resource_minio_ilm_tier.go b/minio/resource_minio_ilm_tier.go index 76280fa5..173f1820 100644 --- a/minio/resource_minio_ilm_tier.go +++ b/minio/resource_minio_ilm_tier.go @@ -224,7 +224,7 @@ func minioCreateILMTier(ctx context.Context, d *schema.ResourceData, meta interf gcsOptions = append(gcsOptions, madmin.GCSPrefix(d.Get("prefix").(string))) } if d.Get("region").(string) != "" { - gcsOptions = append(gcsOptions, madmin.GCSPrefix(d.Get("region").(string))) + gcsOptions = append(gcsOptions, madmin.GCSRegion(d.Get("region").(string))) } if _, ok := gcsConfig["storage_class"]; ok { gcsOptions = append(gcsOptions, madmin.GCSStorageClass(gcsConfig["storage_class"].(string)))