Skip to content

Commit 8139f99

Browse files
committed
Switch clients to versioned endpoint discovery helpers
And deprecate the old ones since they are no longer used. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 07d1ee0 commit 8139f99

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

openstack/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func v2auth(ctx context.Context, client *gophercloud.ProviderClient, endpoint st
163163
}
164164
}
165165
client.EndpointLocator = func(opts gophercloud.EndpointOpts) (string, error) {
166-
return V2EndpointURL(catalog, opts)
166+
return V2Endpoint(ctx, client, catalog, opts)
167167
}
168168

169169
return nil
@@ -284,7 +284,7 @@ func v3auth(ctx context.Context, client *gophercloud.ProviderClient, endpoint st
284284
}
285285
}
286286
client.EndpointLocator = func(opts gophercloud.EndpointOpts) (string, error) {
287-
return V3EndpointURL(catalog, opts)
287+
return V3Endpoint(ctx, client, catalog, opts)
288288
}
289289

290290
return nil

openstack/endpoint_location.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
tokens3 "github.com/gophercloud/gophercloud/v2/openstack/identity/v3/tokens"
99
)
1010

11+
// TODO(stephenfin): Remove this module in v3. The functions below are no longer used.
12+
1113
/*
1214
V2EndpointURL discovers the endpoint URL for a specific service from a
1315
ServiceCatalog acquired during the v2 identity service.

0 commit comments

Comments
 (0)