Skip to content

Commit

Permalink
Updates for new MinIO version
Browse files Browse the repository at this point in the history
  • Loading branch information
jonyoder committed Jul 31, 2023
1 parent 2918b19 commit 8c75434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docker/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ services:

minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
expose:
- "9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: miniokey
command: minio server /data
command: minio server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
Expand Down
2 changes: 1 addition & 1 deletion pkg/rsstorage/servers/s3server/s3_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (s *defaultS3Wrapper) MoveObject(bucket, oldKey, newBucket, newKey string)
func (s *defaultS3Wrapper) ListObjects(bucket, prefix string) ([]string, error) {
ops := NewAwsOps(s.session)
// prefix must end with a slash
if !strings.HasSuffix(prefix, "/") {
if prefix != "" && !strings.HasSuffix(prefix, "/") {
prefix += "/"
}
return ops.BucketObjects(bucket, prefix, S3Concurrency, true, nil)
Expand Down

0 comments on commit 8c75434

Please sign in to comment.