From: Evan Broder Date: Tue, 17 Feb 2009 08:45:38 +0000 (-0500) Subject: Don't explicitly initialize each quota when creating a new quota object. X-Git-Tag: 0.1.6^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/commitdiff_plain/a3742fef120ef9b31fdae33b7f405f8286b9694d Don't explicitly initialize each quota when creating a new quota object. svn path=/trunk/packages/invirt-database/; revision=2152 --- diff --git a/debian/changelog b/debian/changelog index 7dbf4ab..493fc08 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 17 Feb 2009 03:42:41 -0500 + -- Evan Broder Tue, 17 Feb 2009 03:44:20 -0500 invirt-database (0.1.5) unstable; urgency=low diff --git a/scripts/invirt-setquotas b/scripts/invirt-setquotas index ceae1bf..2a4d55d 100755 --- a/scripts/invirt-setquotas +++ b/scripts/invirt-setquotas @@ -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)