diff --git a/openstackclient/common/quota.py b/openstackclient/common/quota.py index a40f6e4d84..4963eeac89 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)))