Merge "LUKS quotas names easier to understand"

This commit is contained in:
Jenkins 2013-10-11 04:11:09 +00:00 committed by Gerrit Code Review
commit 62cebd86a3

View File

@ -55,6 +55,10 @@ def get_quota_name(quota):
'security_group_rules': _('Security Group Rules'), 'security_group_rules': _('Security Group Rules'),
'key_pairs': _('Key Pairs'), 'key_pairs': _('Key Pairs'),
'fixed_ips': _('Fixed IPs'), '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()) return QUOTA_NAMES.get(quota.name, quota.name.replace("_", " ").title())