Merge pull request #81562 from andyzhangx/azurefile-trim

fix: trim new line for azure storage account name
This commit is contained in:
Kubernetes Prow Robot
2019-08-21 04:35:17 -07:00
committed by GitHub

View File

@@ -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
}