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
@ -222,8 +222,7 @@ class ShowQuota(show.ShowOne):
|
|||||||
info.pop(k)
|
info.pop(k)
|
||||||
|
|
||||||
# Handle project ID special as it only appears in output
|
# Handle project ID special as it only appears in output
|
||||||
if info['id']:
|
if 'id' in info:
|
||||||
info['project'] = info['id']
|
info['project'] = info.pop('id')
|
||||||
info.pop('id')
|
|
||||||
|
|
||||||
return zip(*sorted(six.iteritems(info)))
|
return zip(*sorted(six.iteritems(info)))
|
||||||
|
Loading…
Reference in New Issue
Block a user