From 193ad96f21f3540504b86c9538f807830843d518 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Sun, 18 Aug 2019 07:53:09 +0000 Subject: [PATCH] fix: trim new line for azure storage account name fix: comments --- pkg/volume/azure_file/azure_util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/volume/azure_file/azure_util.go b/pkg/volume/azure_file/azure_util.go index 165f83afdec..986107cae87 100644 --- a/pkg/volume/azure_file/azure_util.go +++ b/pkg/volume/azure_file/azure_util.go @@ -66,6 +66,7 @@ func (s *azureSvc) GetAzureCredentials(host volume.VolumeHost, nameSpace, secret if accountName == "" || accountKey == "" { return "", "", fmt.Errorf("Invalid %v/%v, couldn't extract azurestorageaccountname or azurestorageaccountkey", nameSpace, secretName) } + accountName = strings.TrimSpace(accountName) return accountName, accountKey, nil }