Skip to content

Commit

Permalink
fix TestIntegrationAzure failures, remove unnecessary strings.Trim
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Nov 27, 2023
1 parent dc1db33 commit 54d5617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/object_disk/object_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func makeObjectDiskConnection(ctx context.Context, ch *clickhouse.ClickHouse, cf
azureCfg.AccountName = creds.AzureAccountName
}
if azureURL.Path != "" {
azureCfg.Path = strings.Trim(azureURL.Path, "/")
azureCfg.Path = azureURL.Path
if azureCfg.AccountName != "" && strings.HasPrefix(azureCfg.Path, "/"+creds.AzureAccountName) {
azureCfg.Path = strings.TrimPrefix(azureURL.Path, "/"+creds.AzureAccountName)
}
Expand Down

0 comments on commit 54d5617

Please sign in to comment.