Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 89bdd4f

Browse files
committed
Merge pull request #531 from alexcern/fix/reauth_with_base_path
Support reauth on identity endpoints with a base path
2 parents e6b9184 + 5ef9a23 commit 89bdd4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openstack/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func v2auth(client *gophercloud.ProviderClient, endpoint string, options gopherc
110110
if options.AllowReauth {
111111
client.ReauthFunc = func() error {
112112
client.TokenID = ""
113-
return AuthenticateV2(client, options)
113+
return v2auth(client, endpoint, options)
114114
}
115115
}
116116
client.TokenID = token.ID
@@ -168,7 +168,7 @@ func v3auth(client *gophercloud.ProviderClient, endpoint string, options gopherc
168168
if options.AllowReauth {
169169
client.ReauthFunc = func() error {
170170
client.TokenID = ""
171-
return AuthenticateV3(client, options)
171+
return v3auth(client, endpoint, options)
172172
}
173173
}
174174
client.EndpointLocator = func(opts gophercloud.EndpointOpts) (string, error) {

0 commit comments

Comments
 (0)