Skip to content

Commit

Permalink
Fix keystone client usage
Browse files Browse the repository at this point in the history
The client includes /v3 in the URL.
  • Loading branch information
markgoddard committed Jun 5, 2023
1 parent 6bbe4ac commit c8dfa58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os_capacity/data/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@


def get_all(identity_client):
response = identity_client.get("/v3/users").json()
response = identity_client.get("/users").json()
raw_users = response['users']
return {u['id']: u['name'] for u in raw_users}


def get_all_projects(identity_client):
response = identity_client.get("/v3/projects").json()
response = identity_client.get("/projects").json()
raw_projects = response['projects']
return {u['id']: u['name'] for u in raw_projects}

0 comments on commit c8dfa58

Please sign in to comment.