From a3742fef120ef9b31fdae33b7f405f8286b9694d Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Tue, 17 Feb 2009 03:45:38 -0500 Subject: [PATCH] Don't explicitly initialize each quota when creating a new quota object. svn path=/trunk/packages/invirt-database/; revision=2152 --- debian/changelog | 4 +++- scripts/invirt-setquotas | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 1.7.9.5