The following func uses the context, provided during the initialization, which causes context canceled when the original context is done.
|
client.EndpointLocator = func(opts gophercloud.EndpointOpts) (string, error) { |
|
return V3Endpoint(ctx, client, catalog, opts) |
|
} |
Caught by terraform-provider-openstack/terraform-provider-openstack#1899
proper func signature should be:
client.EndpointLocator = func(ctx context.Context, opts gophercloud.EndpointOpts) (string, error) {
return V3Endpoint(ctx, client, catalog, opts)
}
cc @stephenfin