Skip to content

Commit 193ad96

Browse files
committed
fix: trim new line for azure storage account name
fix: comments
1 parent 091a5dc commit 193ad96

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/volume/azure_file/azure_util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func (s *azureSvc) GetAzureCredentials(host volume.VolumeHost, nameSpace, secret
6666
if accountName == "" || accountKey == "" {
6767
return "", "", fmt.Errorf("Invalid %v/%v, couldn't extract azurestorageaccountname or azurestorageaccountkey", nameSpace, secretName)
6868
}
69+
accountName = strings.TrimSpace(accountName)
6970
return accountName, accountKey, nil
7071
}
7172

0 commit comments

Comments
 (0)