Merge "Show correct name for resource with quota set to zero"

This commit is contained in:
Zuul 2020-01-14 05:00:00 +00:00 committed by Gerrit Code Review
commit 4a2aa4acc1
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ class ShowQuota(command.ShowOne, BaseQuota):
for k, v in itertools.chain(
COMPUTE_QUOTAS.items(), NOVA_NETWORK_QUOTAS.items(),
VOLUME_QUOTAS.items(), NETWORK_QUOTAS.items()):
if not k == v and info.get(k):
if not k == v and info.get(k) is not None:
info[v] = info[k]
info.pop(k)