fix func calls after master merge

This commit is contained in:
Adrien Delorme 2019-10-16 10:40:25 +02:00
parent 4479f73995
commit 4542666e25
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ type azureClientSet struct {
}
func New(c Config, say func(string)) (AzureClientSet, error) {
token, err := c.GetServicePrincipalToken(say, c.CloudEnvironment.ResourceManagerEndpoint)
token, err := c.GetServicePrincipalToken(say, c.CloudEnvironment().ResourceManagerEndpoint)
if err != nil {
return nil, err
}

View File

@ -207,12 +207,12 @@ func (c Config) GetServicePrincipalTokens(say func(string)) (
err error) {
servicePrincipalToken, err = c.GetServicePrincipalToken(say,
c.CloudEnvironment.ResourceManagerEndpoint)
c.CloudEnvironment().ResourceManagerEndpoint)
if err != nil {
return nil, nil, err
}
servicePrincipalTokenVault, err = c.GetServicePrincipalToken(say,
strings.TrimRight(c.CloudEnvironment.KeyVaultEndpoint, "/"))
strings.TrimRight(c.CloudEnvironment().KeyVaultEndpoint, "/"))
if err != nil {
return nil, nil, err
}