Skip to content

Commit a45a1d4

Browse files
authored
Merge pull request #7 from edwardsp/multi-cloud-bugfix
Fixing multicloud support for changelog-reader
2 parents 88f0f93 + 82e1225 commit a45a1d4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cmd/azure-import/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ func setDirStripe(dir_name string, stripe_count int, stripe_size int) error {
7575
return err
7676
}
7777

78-
const blobEndPoint string = "https://%s.blob.core.windows.net/"
79-
8078
func main() {
8179
sasKey := os.Getenv("STORAGE_SAS")
8280

cmd/changelog-reader/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import (
2222
"github.com/edwardsp/go-lustre/llapi"
2323
)
2424

25-
const blobEndPoint string = "https://%s.blob.core.windows.net/"
26-
2725
var mountRoot string
2826
var rootFid string
2927
var containerURL azblob.ContainerURL
@@ -714,7 +712,7 @@ func main() {
714712
}
715713

716714
p := azblob.NewPipeline(azblob.NewAnonymousCredential(), azblob.PipelineOptions{})
717-
cu, _ := url.Parse(fmt.Sprintf(blobEndPoint+"%s%s", accountName, container, sasKey))
715+
cu, _ := url.Parse(fmt.Sprintf("https://%s.%s/%s%s", accountName, accountSuffix, container, sasKey))
718716
containerURL = azblob.NewContainerURL(*cu, p)
719717

720718
// set the global rootFid

0 commit comments

Comments
 (0)