Do not show quota of removed volume types in Default Quotas panel
Fixes the issue where quota for removed volume types still show up in Admin -> Defaults -> Default Quotas view. Change-Id: I2a822ac08b8347a8d76e8de70deca0e34fafe6e3 Closes-Bug: #1266906
This commit is contained in:
parent
c24e82d046
commit
a7b6d82fd1
|
@ -862,10 +862,8 @@ class VolumeTypeQuotaEngine(QuotaEngine):
|
|||
result[resource.name] = resource
|
||||
|
||||
# Volume type quotas.
|
||||
# NOTE(jdg): We also want to check deleted types here as well
|
||||
# if we don't the _get_quotas resource len check on will fail
|
||||
volume_types = db.volume_type_get_all(context.get_admin_context(),
|
||||
True)
|
||||
False)
|
||||
for volume_type in volume_types.values():
|
||||
for part_name in ('volumes', 'gigabytes', 'snapshots'):
|
||||
resource = VolumeTypeResource(part_name, volume_type)
|
||||
|
|
Loading…
Reference in New Issue