From fd617115857a5c666befbc05d21309de0af742fc Mon Sep 17 00:00:00 2001
From: TerryHowe <terrylhowe@gmail.com>
Date: Wed, 5 Aug 2015 09:55:29 -0600
Subject: [PATCH] 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
---
 openstackclient/common/quota.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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