More .Provider references in OS identity v3.
diff --git a/openstack/identity/v3/tokens/requests.go b/openstack/identity/v3/tokens/requests.go
index d8d74fb..351d7d6 100644
--- a/openstack/identity/v3/tokens/requests.go
+++ b/openstack/identity/v3/tokens/requests.go
@@ -83,7 +83,7 @@
}
if options.Password == "" {
- if c.Provider.TokenID != "" {
+ if c.TokenID != "" {
// Because we aren't using password authentication, it's an error to also provide any of the user-based authentication
// parameters.
if options.Username != "" {
@@ -102,7 +102,7 @@
// Configure the request for Token authentication.
req.Auth.Identity.Methods = []string{"token"}
req.Auth.Identity.Token = &tokenReq{
- ID: c.Provider.TokenID,
+ ID: c.TokenID,
}
} else {
// If no password or token ID are available, authentication can't continue.