Skip to content

Commit

Permalink
Fix GCS ilm tier region using prefix string instead of region string (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maxalves authored Jul 25, 2024
1 parent a6a57d7 commit 188e959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minio/resource_minio_ilm_tier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 188e959

Please sign in to comment.