Merge "Show correct name for resource with quota set to zero"
This commit is contained in:
commit
4a2aa4acc1
@ -649,7 +649,7 @@ class ShowQuota(command.ShowOne, BaseQuota):
|
|||||||
for k, v in itertools.chain(
|
for k, v in itertools.chain(
|
||||||
COMPUTE_QUOTAS.items(), NOVA_NETWORK_QUOTAS.items(),
|
COMPUTE_QUOTAS.items(), NOVA_NETWORK_QUOTAS.items(),
|
||||||
VOLUME_QUOTAS.items(), 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[v] = info[k]
|
||||||
info.pop(k)
|
info.pop(k)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user