Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #89 from Fedosin/issues/88
Browse files Browse the repository at this point in the history
Allow Keystone API version to be anything from v3 to v3.x
  • Loading branch information
dims committed Mar 19, 2018
2 parents 75c5b38 + 1705910 commit 0d8dfe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/identity/keystone/keystone.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func createIdentityV3Provider(options gophercloud.AuthOptions, transport http.Ro
}

versions := []*utils.Version{
{ID: "v3.0", Priority: 30, Suffix: "/v3/"},
{ID: "v3", Priority: 30, Suffix: "/v3/"},
}
chosen, _, err := utils.ChooseVersion(client, versions)
if err != nil {
return nil, fmt.Errorf("Unable to find identity API v3 version : %v", err)
}

switch chosen.ID {
case "v3.0":
case "v3":
return client, nil
default:
// The switch statement must be out of date from the versions list.
Expand Down

0 comments on commit 0d8dfe9

Please sign in to comment.