Skip to content

Commit 54af5e6

Browse files
committed
Fix credentials check
1 parent 6a0b149 commit 54af5e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/radarbase/output/config/RestructureConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ data class S3Config(
363363
fun createS3Client(): MinioClient = MinioClient.Builder().apply {
364364
endpoint(endpoint)
365365
if (accessToken.isNullOrBlank() || secretKey.isNullOrBlank()) {
366-
credentials(accessToken, secretKey)
367-
} else {
368366
credentialsProvider(IamAwsProvider(null, null))
367+
} else {
368+
credentials(accessToken, secretKey)
369369
}
370370
}.build()
371371

0 commit comments

Comments
 (0)