trim right of the keyvault url

This commit is contained in:
Hariharan Jayaraman 2018-05-18 00:44:25 -07:00
parent df5cc234fc
commit 91eed4da52
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ func (b *Builder) getServicePrincipalTokens(say func(string)) (*adal.ServicePrin
if err != nil {
return nil, nil, err
}
servicePrincipalTokenVault, err = packerAzureCommon.Authenticate(*b.config.cloudEnvironment, b.config.TenantID, say, b.config.cloudEnvironment.KeyVaultEndpoint)
servicePrincipalTokenVault, err = packerAzureCommon.Authenticate(*b.config.cloudEnvironment, b.config.TenantID, say, strings.TrimRight(b.config.cloudEnvironment.KeyVaultEndpoint, "/"))
if err != nil {
return nil, nil, err
}