Don't explicitly initialize each quota when creating a new quota object.
[invirt/packages/invirt-database.git] / scripts / invirt-setquotas
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.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)
 
     if opts.memtotal != None:
         total = int(opts.memtotal)