summaryrefslogtreecommitdiff
path: root/openstackclient/common
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-08-05 19:26:16 +0000
committerGerrit Code Review <review@openstack.org>2015-08-05 19:26:16 +0000
commitc5b31f3c6a88e6b4d3b6be90ae7119efc500488c (patch)
tree30bdc10a51a24573ca5f3df5cfceadf9688b3c27 /openstackclient/common
parent4850728b990536ad49775e67c849536d6320e111 (diff)
parentfd617115857a5c666befbc05d21309de0af742fc (diff)
downloadpython-openstackclient-c5b31f3c6a88e6b4d3b6be90ae7119efc500488c.tar.gz
Merge "Fix quota show when there is no project id"
Diffstat (limited to 'openstackclient/common')
-rw-r--r--openstackclient/common/quota.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py
index a40f6e4d..4963eeac 100644
--- a/openstackclient/common/quota.py
+++ b/openstackclient/common/quota.py
@@ -222,8 +222,7 @@ class ShowQuota(show.ShowOne):
info.pop(k)
# Handle project ID special as it only appears in output
- if info['id']:
- info['project'] = info['id']
- info.pop('id')
+ if 'id' in info:
+ info['project'] = info.pop('id')
return zip(*sorted(six.iteritems(info)))