From 8eef58939b270c22cdf70c50d6d33d79b16bdd2e Mon Sep 17 00:00:00 2001 From: Yuheng Zhang Date: Thu, 12 Mar 2020 14:31:15 +0800 Subject: [PATCH] fix: credential typo --- pkg/buildcontext/azureblob.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/buildcontext/azureblob.go b/pkg/buildcontext/azureblob.go index 6af4680152..5f6817a902 100644 --- a/pkg/buildcontext/azureblob.go +++ b/pkg/buildcontext/azureblob.go @@ -43,12 +43,12 @@ func (b *AzureBlob) UnpackTarFromBuildContext() (string, error) { return "", errors.New("AZURE_STORAGE_ACCESS_KEY environment variable is not set") } - // Get storage accoutname for Azure Blob Storage + // Get storage accountName for Azure Blob Storage u, _ := url.Parse(b.context) parts := azblob.NewBlobURLParts(*u) accountName := strings.Split(parts.Host, ".")[0] - // Generate credentail with accountname and accountkey + // Generate credential with accountName and accountKey credential, err := azblob.NewSharedKeyCredential(accountName, accountKey) if err != nil { return parts.Host, err @@ -62,7 +62,7 @@ func (b *AzureBlob) UnpackTarFromBuildContext() (string, error) { return tarPath, err } - // Downloading contextfile from Azure Blob Storage + // Downloading context file from Azure Blob Storage p := azblob.NewPipeline(credential, azblob.PipelineOptions{}) blobURL := azblob.NewBlobURL(*u, p) ctx := context.Background()