diff options
author | vijaya-erukala <vijaya_erukala@persistent.co.in> | 2012-09-18 13:18:38 +0530 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-09-19 18:43:16 -0700 |
commit | 4802d1b5c327a453997010ef9ce035cc2b257e11 (patch) | |
tree | 4df5bd160fed2ea349c623a6d39e8220b63f4b8f /bin/nova-manage | |
parent | a6e9a9664b6fb051f392bd03a87f64ca4441c1d5 (diff) | |
download | nova-4802d1b5c327a453997010ef9ce035cc2b257e11.tar.gz |
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
(cherry picked from commit 98f782f81863e0ccb67abf53cd331d4d6b5fc7de)
Diffstat (limited to 'bin/nova-manage')
-rwxr-xr-x | bin/nova-manage | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index 56855fad4c..176273c720 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -227,7 +227,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: |