Modified API calls in os usage

We usually call v3 keystoneclient APIs for V2 OSC, this patch
modified 'tenants' to 'projects'.

Change-Id: Idbf74f098cd1386aa675c081480b89bbc11c8534
This commit is contained in:
jiahui.qiang 2016-12-08 03:00:45 +08:00
parent 60370b46f5
commit 035a87051c

View File

@ -89,7 +89,7 @@ class ListUsage(command.Lister):
# Cache the project list
project_cache = {}
try:
for p in self.app.client_manager.identity.tenants.list():
for p in self.app.client_manager.identity.projects.list():
project_cache[p.id] = p
except Exception:
# Just forget it if there's any trouble