Merge "Update 'unlimited' quota value to '-1' in db"

This commit is contained in:
Jenkins 2012-09-20 01:25:42 +00:00 committed by Gerrit Code Review
commit 68d1274ee8

View File

@ -227,7 +227,7 @@ class ProjectCommands(object):
ctxt = context.get_admin_context() ctxt = context.get_admin_context()
if key: if key:
if value.lower() == 'unlimited': if value.lower() == 'unlimited':
value = None value = -1
try: try:
db.quota_update(ctxt, project_id, key, value) db.quota_update(ctxt, project_id, key, value)
except exception.ProjectQuotaNotFound: except exception.ProjectQuotaNotFound: