File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/radarbase/output/config Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -339,9 +339,9 @@ data class AzureConfig(
339339 fun createAzureClient (): BlobServiceClient = BlobServiceClientBuilder ().apply {
340340 endpoint(endpoint)
341341 when {
342- username != null && password != null -> credential(BasicAuthenticationCredential (username, password))
343- accountName != null && accountKey != null -> credential(StorageSharedKeyCredential (accountName, accountKey))
344- sasToken != null -> sasToken(sasToken)
342+ ! username.isNullOrEmpty() && ! password.isNullOrEmpty() -> credential(BasicAuthenticationCredential (username, password))
343+ ! accountName.isNullOrEmpty() && ! accountKey.isNullOrEmpty() -> credential(StorageSharedKeyCredential (accountName, accountKey))
344+ ! sasToken.isNullOrEmpty() -> sasToken(sasToken)
345345 else -> logger.warn(" No Azure credentials supplied. Assuming a public blob storage." )
346346 }
347347 }.buildClient()
You can’t perform that action at this time.
0 commit comments