Skip to content

Commit

Permalink
Fix implied policy in service account (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickTeKulve authored Oct 14, 2024
1 parent df3b2d5 commit 851697a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
minio:
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9000:9000"
- "9001:9001"
Expand All @@ -13,7 +13,7 @@ services:
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
secondminio: # This is used to test bucket replication
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9002:9000"
- "9003:9001"
Expand All @@ -25,7 +25,7 @@ services:
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
thirdminio: # This is used to test bucket replication
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9004:9000"
- "9005:9001"
Expand All @@ -37,7 +37,7 @@ services:
MINIO_NOTIFY_WEBHOOK_ENDPOINT_primary: https://webhook.example.com
command: server --console-address :9001 /data{0...3}
fourthminio: # This is used to test bucket replication
image: minio/minio:RELEASE.2023-08-31T15-31-16Z
image: minio/minio:RELEASE.2024-10-02T17-50-41Z
ports:
- "9006:9000"
- "9007:9001"
Expand Down
5 changes: 3 additions & 2 deletions minio/resource_minio_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ func minioReadServiceAccount(ctx context.Context, d *schema.ResourceData, meta i
return NewResourceError("reading service account failed", d.Id(), err)
}

_ = d.Set("policy", output.Policy)

if !output.ImpliedPolicy {
_ = d.Set("policy", output.Policy)
}
return nil
}

Expand Down

0 comments on commit 851697a

Please sign in to comment.