azure/builder: fix token validity test

This commit is contained in:
Paul Meyer 2016-06-10 09:58:38 -07:00
parent 844e753fea
commit a788ea4d43
1 changed files with 1 additions and 2 deletions

View File

@ -197,8 +197,7 @@ func mkTokenCallback(path string) azure.TokenRefreshCallback {
// expired). This check is essentially to make sure refresh_token is good.
func validateToken(env azure.Environment, token *azure.ServicePrincipalToken) error {
c := subscriptionsClient(env.ResourceManagerEndpoint)
// WTF(chrboum)
//c.Authorizer = token
c.Authorizer = token
_, err := c.List()
if err != nil {
return fmt.Errorf("Token validity check failed: %v", err)