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

Commit 1f218c8

Browse files
committed
rename var: authopts.Token -> authopts.TokenID
1 parent 475668a commit 1f218c8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

auth_options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ type AuthOptions struct {
4444
// possible. This setting defaults to false.
4545
AllowReauth bool
4646

47-
// Token allows users to authenticate (possibly as another user) with an
48-
// authentication token.
49-
Token string
47+
// TokenID allows users to authenticate (possibly as another user) with an
48+
// authentication token ID.
49+
TokenID string
5050
}

openstack/identity/v2/tokens/requests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ func (auth AuthOptions) ToTokenCreateMap() (map[string]interface{}, error) {
5454
} else {
5555
return nil, ErrPasswordRequired
5656
}
57-
} else if auth.Token != "" {
57+
} else if auth.TokenID != "" {
5858
authMap["token"] = map[string]interface{}{
59-
"id": auth.Token,
59+
"id": auth.TokenID,
6060
}
6161
} else {
6262
return nil, fmt.Errorf("You must provide either username/password or tenantID/token values.")

0 commit comments

Comments
 (0)