summaryrefslogtreecommitdiffstats
path: root/nova/quota.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/quota.py')
-rw-r--r--nova/quota.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/nova/quota.py b/nova/quota.py
index fdef42bc5..e0fb97542 100644
--- a/nova/quota.py
+++ b/nova/quota.py
@@ -37,12 +37,12 @@ flags.DEFINE_integer('quota_floating_ips', 10,
'number of floating ips allowed per project')
flags.DEFINE_integer('quota_metadata_items', 128,
'number of metadata items allowed per instance')
-flags.DEFINE_integer('quota_personality_max_files', 5,
- 'number of personality files allowed')
-flags.DEFINE_integer('quota_personality_max_content_bytes', 10 * 1024,
- 'number of bytes allowed per personality file')
-flags.DEFINE_integer('quota_personality_max_path_bytes', 255,
- 'number of bytes allowed per personality file path')
+flags.DEFINE_integer('quota_max_onset_files', 5,
+ 'number of onset files allowed')
+flags.DEFINE_integer('quota_max_onset_file_content_bytes', 10 * 1024,
+ 'number of bytes allowed per onset file')
+flags.DEFINE_integer('quota_max_onset_file_path_bytes', 255,
+ 'number of bytes allowed per onset file path')
def get_quota(context, project_id):
@@ -113,19 +113,19 @@ def allowed_metadata_items(context, num_metadata_items):
return min(num_metadata_items, num_allowed_metadata_items)
-def allowed_personality_files(context):
- """Return the number of personality files allowed"""
- return int(FLAGS.quota_personality_max_files)
+def allowed_onset_files(context):
+ """Return the number of onset files allowed"""
+ return int(FLAGS.quota_max_onset_files)
-def allowed_personality_content_bytes(context):
- """Return the number of bytes allowed per personality content"""
- return int(FLAGS.quota_personality_max_content_bytes)
+def allowed_onset_file_content_bytes(context):
+ """Return the number of bytes allowed per onset file content"""
+ return int(FLAGS.quota_max_onset_file_content_bytes)
-def allowed_personality_path_bytes(context):
- """Return the number of bytes allowed in a personality file path"""
- return int(FLAGS.quota_personality_max_path_bytes)
+def allowed_onset_file_path_bytes(context):
+ """Return the number of bytes allowed in an onset file path"""
+ return int(FLAGS.quota_max_onset_file_path_bytes)
class QuotaError(exception.ApiError):