Fixes the issue where quota for removed volume types still show up
in Admin -> Defaults -> Default Quotas view.
Change-Id: I2a822ac08b8347a8d76e8de70deca0e34fafe6e3
Closes-Bug: #
1266906
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)