From 23e00a740bc1fbf1e9c3e7c7e453f114c464c53a Mon Sep 17 00:00:00 2001 From: vijaya-erukala Date: Tue, 18 Sep 2012 13:18:38 +0530 Subject: [PATCH] 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 --- bin/nova-manage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nova-manage b/bin/nova-manage index 790e1c0b..ce72c32c 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: