rename var: authopts.Token -> authopts.TokenID
diff --git a/openstack/identity/v2/tokens/requests.go b/openstack/identity/v2/tokens/requests.go
index 356bf87..074a89e 100644
--- a/openstack/identity/v2/tokens/requests.go
+++ b/openstack/identity/v2/tokens/requests.go
@@ -54,9 +54,9 @@
} else {
return nil, ErrPasswordRequired
}
- } else if auth.Token != "" {
+ } else if auth.TokenID != "" {
authMap["token"] = map[string]interface{}{
- "id": auth.Token,
+ "id": auth.TokenID,
}
} else {
return nil, fmt.Errorf("You must provide either username/password or tenantID/token values.")