LUKS quotas names easier to understand

Change-Id: I977d77d4360589bf335f7b036703e155088e0122
Closes-Bug: #1219085
This commit is contained in:
Romain Hardouin
2013-10-03 03:02:27 +02:00
parent 950bd9a4f3
commit 5b6a96a050

View File

@@ -55,6 +55,10 @@ def get_quota_name(quota):
'security_group_rules': _('Security Group Rules'),
'key_pairs': _('Key Pairs'),
'fixed_ips': _('Fixed IPs'),
'volumes_volume_luks': _('LUKS Volumes'),
'snapshots_volume_luks': _('LUKS Volumes Snapshots'),
'gigabytes_volume_luks': _('LUKS Volumes Size (GB)'),
'dm-crypt': _('dm-crypt'),
}
return QUOTA_NAMES.get(quota.name, quota.name.replace("_", " ").title())