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
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user