summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorvijaya-erukala <vijaya_erukala@persistent.co.in>2012-09-18 13:18:38 +0530
committervijaya-erukala <vijaya_erukala@persistent.co.in>2012-09-18 14:14:15 +0530
commit98f782f81863e0ccb67abf53cd331d4d6b5fc7de (patch)
treec5086eff76fe08549cdf910ae8de699b02265a51 /bin
parent9f5f7dae755dc410b1b3bfe7babc5d105913c978 (diff)
Update 'unlimited' quota value to '-1' in db
Updates quota value to -1 in db rather than None if the user specify the quota limit as "unlimited". Fixes bug 979087 Change-Id: I0ec412189ad9630c4a875655294c1e77886108f5
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 790e1c0b6..ce72c32ce 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -228,7 +228,7 @@ class ProjectCommands(object):
ctxt = context.get_admin_context()
if key:
if value.lower() == 'unlimited':
- value = None
+ value = -1
try:
db.quota_update(ctxt, project_id, key, value)
except exception.ProjectQuotaNotFound: