diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-08-05 19:26:16 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-08-05 19:26:16 +0000 |
| commit | c5b31f3c6a88e6b4d3b6be90ae7119efc500488c (patch) | |
| tree | 30bdc10a51a24573ca5f3df5cfceadf9688b3c27 /openstackclient/common | |
| parent | 4850728b990536ad49775e67c849536d6320e111 (diff) | |
| parent | fd617115857a5c666befbc05d21309de0af742fc (diff) | |
| download | python-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.py | 5 |
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))) |
