mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
fix: trim new line for azure storage account name
fix: comments
This commit is contained in:
parent
091a5dc53b
commit
193ad96f21
@ -66,6 +66,7 @@ func (s *azureSvc) GetAzureCredentials(host volume.VolumeHost, nameSpace, secret
|
|||||||
if accountName == "" || accountKey == "" {
|
if accountName == "" || accountKey == "" {
|
||||||
return "", "", fmt.Errorf("Invalid %v/%v, couldn't extract azurestorageaccountname or azurestorageaccountkey", nameSpace, secretName)
|
return "", "", fmt.Errorf("Invalid %v/%v, couldn't extract azurestorageaccountname or azurestorageaccountkey", nameSpace, secretName)
|
||||||
}
|
}
|
||||||
|
accountName = strings.TrimSpace(accountName)
|
||||||
return accountName, accountKey, nil
|
return accountName, accountKey, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user