diff options
| author | TerryHowe <terrylhowe@gmail.com> | 2015-08-05 09:55:29 -0600 |
|---|---|---|
| committer | TerryHowe <terrylhowe@gmail.com> | 2015-08-05 09:55:29 -0600 |
| commit | fd617115857a5c666befbc05d21309de0af742fc (patch) | |
| tree | 69b7db3313a09de3a52455cbe7a2c3a58ffd368a /openstackclient/common | |
| parent | 1f341b4a33572a749f8f190269c9b2c130a0f3d1 (diff) | |
| download | python-openstackclient-fd617115857a5c666befbc05d21309de0af742fc.tar.gz | |
Fix quota show when there is no project id
If no id is in the response, quota show fails.
Change-Id: I9905431b006404c9ba8453eba016cec9ebe19402
Closes-Bug: #1481803
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))) |
