Skip to content

Commit 2afbe71

Browse files
committed
Allow Identity API version of 2
1 parent 05053b3 commit 2afbe71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openstack/clientconfig/requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func AuthOptions(opts *ClientOpts) (*gophercloud.AuthOptions, error) {
168168

169169
identityAPI := determineIdentityAPI(cloud, opts)
170170
switch identityAPI {
171-
case "2.0":
171+
case "2.0", "2":
172172
return v2auth(cloud, opts)
173173
case "3":
174174
return v3auth(cloud, opts)

openstack/clientconfig/testing/fixtures.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ var YukonEnvAuth = map[string]string{
326326
"OS_AUTH_URL": "https://yt.example.com:5000/v2.0",
327327
"OS_TOKEN": "12345",
328328
"OS_PROJECT_NAME": "Some Project",
329-
"OS_IDENTITY_API_VERSION": "2.0",
329+
"OS_IDENTITY_API_VERSION": "2",
330330
}
331331

332332
var YukonAuthOpts = &gophercloud.AuthOptions{

0 commit comments

Comments
 (0)