From 7077ad5224ba9f02964a1afa0045ef67d2bc956f Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Sat, 2 Feb 2008 03:33:15 -0500 Subject: [PATCH] Check quotas against the machine's owner and not the user committing the act svn path=/trunk/web/; revision=266 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7e7e23d..a3c84ee 100755 --- a/main.py +++ b/main.py @@ -146,10 +146,10 @@ def parseCreate(user, fields): owner = validation.testOwner(user, fields.getfirst('owner')) memory = fields.getfirst('memory') - memory = validation.validMemory(user, memory, on=True) + memory = validation.validMemory(owner, memory, on=True) disk_size = fields.getfirst('disk') - disk_size = validation.validDisk(user, disk_size) + disk_size = validation.validDisk(owner, disk_size) vm_type = fields.getfirst('vmtype') if vm_type not in ('hvm', 'paravm'): -- 1.7.9.5