fix: trim new line for azure storage account name
fix: comments
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user