Skip to content

Commit 035a870

Browse files
author
jiahui.qiang
committed
Modified API calls in os usage
We usually call v3 keystoneclient APIs for V2 OSC, this patch modified 'tenants' to 'projects'. Change-Id: Idbf74f098cd1386aa675c081480b89bbc11c8534
1 parent 60370b4 commit 035a870

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/compute/v2/usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _format_project(project):
8989
# Cache the project list
9090
project_cache = {}
9191
try:
92-
for p in self.app.client_manager.identity.tenants.list():
92+
for p in self.app.client_manager.identity.projects.list():
9393
project_cache[p.id] = p
9494
except Exception:
9595
# Just forget it if there's any trouble

0 commit comments

Comments
 (0)