mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
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
This commit is contained in:
parent
1f341b4a33
commit
fd61711585
1 changed files with 2 additions and 3 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue