Merge "Update 'unlimited' quota value to '-1' in db"
This commit is contained in:
commit
68d1274ee8
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user