Skip to content

Commit

Permalink
fix: use the id property instead of name for read ilm tier
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vitaliy committed Aug 12, 2024
1 parent c2eeaf9 commit ec6b606
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 @@ -270,7 +270,7 @@ func minioCreateILMTier(ctx context.Context, d *schema.ResourceData, meta interf

func minioReadILMTier(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
c := meta.(*S3MinioClient).S3Admin
name := d.Get("name").(string)
name := d.Id()
tier, err := getTier(c, ctx, name)
if err != nil {
return NewResourceError("reading remote tier failed", name, err)
Expand Down

0 comments on commit ec6b606

Please sign in to comment.