Skip to content

Commit bfb69db

Browse files
authored
Merge pull request kubernetes#81562 from andyzhangx/azurefile-trim
fix: trim new line for azure storage account name
2 parents b97d08f + 193ad96 commit bfb69db

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)