Don't explicitly initialize each quota when creating a new quota object. 0.1.6
authorEvan Broder <broder@mit.edu>
Tue, 17 Feb 2009 08:45:38 +0000 (03:45 -0500)
committerEvan Broder <broder@mit.edu>
Tue, 17 Feb 2009 08:45:38 +0000 (03:45 -0500)
svn path=/trunk/packages/invirt-database/; revision=2152

debian/changelog
scripts/invirt-setquotas

index 7dbf4ab..493fc08 100644 (file)
@@ -1,8 +1,10 @@
 invirt-database (0.1.6) unstable; urgency=low
 
   * Move invirt-setquotas into this package.
+  * Don't explicitly initialize the values for each quota when creating a
+    new Owner object.
 
- -- Evan Broder <broder@mit.edu>  Tue, 17 Feb 2009 03:42:41 -0500
+ -- Evan Broder <broder@mit.edu>  Tue, 17 Feb 2009 03:44:20 -0500
 
 invirt-database (0.1.5) unstable; urgency=low
 
index ceae1bf..2a4d55d 100755 (executable)
@@ -52,9 +52,7 @@ def main(argv):
     
     x = Owner.query().filter_by(owner_id=owner).first()
     if x == None:
-        x = Owner(owner_id=owner, ram_quota_total=None, ram_quota_single=None,
-                  disk_quota_total=None, disk_quota_single=None,
-                  vms_quota_total=None, vms_quota_active=None)
+        x = Owner(owner_id=owner)
 
     if opts.memtotal != None:
         total = int(opts.memtotal)