Merge "Fix quota show when there is no project id"

This commit is contained in:
Jenkins 2015-08-05 19:26:16 +00:00 committed by Gerrit Code Review
commit c5b31f3c6a

View File

@ -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)))