Skip to content

Commit

Permalink
changed path in azure
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivek Reddy committed Oct 30, 2024
1 parent 5feb4e4 commit d114757
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/splunk/client/azureblobclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ func NewAzureBlobClient(
if endpoint != "" {
serviceURL = endpoint
} else if region != "" {
serviceURL = fmt.Sprintf("https://%s.blob.%s.core.windows.net/", storageAccountName, region)
serviceURL = fmt.Sprintf("https://%s.blob.%s.core.windows.net", storageAccountName, region)
} else {
serviceURL = fmt.Sprintf("https://%s.blob.core.windows.net/", storageAccountName)
serviceURL = fmt.Sprintf("https://%s.blob.core.windows.net", storageAccountName)
}

var containerClient ContainerClientInterface
Expand All @@ -160,7 +160,7 @@ func NewAzureBlobClient(

// Initialize the container client with Shared Key Credential.
rawContainerClient, err := container.NewClientWithSharedKeyCredential(
fmt.Sprintf("%s%s", serviceURL, bucketName),
fmt.Sprintf("%s/%s", serviceURL, bucketName),
sharedKeyCredential,
nil,
)
Expand Down

0 comments on commit d114757

Please sign in to comment.