summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorjiahui.qiang <jiahui.qiang@easystack.cn>2016-12-08 03:00:45 +0800
committerjiahui.qiang <jiahui.qiang@easystack.cn>2016-12-08 03:00:45 +0800
commit035a87051c73eb5e6c4de3a12a4d50bd6acd1714 (patch)
tree9b45b6a20ac13e239a3902d8f5ec5d014178f929 /openstackclient
parent60370b46f5bbc9d3de7454f8efef4b5eae867a35 (diff)
downloadpython-openstackclient-035a87051c73eb5e6c4de3a12a4d50bd6acd1714.tar.gz
Modified API calls in os usage
We usually call v3 keystoneclient APIs for V2 OSC, this patch modified 'tenants' to 'projects'. Change-Id: Idbf74f098cd1386aa675c081480b89bbc11c8534
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/compute/v2/usage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/usage.py b/openstackclient/compute/v2/usage.py
index 89601ae3..3edcffe4 100644
--- a/openstackclient/compute/v2/usage.py
+++ b/openstackclient/compute/v2/usage.py
@@ -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