Fix stupid bug
authorEric Price <ecprice@mit.edu>
Tue, 3 Jun 2008 03:30:01 +0000 (23:30 -0400)
committerEric Price <ecprice@mit.edu>
Tue, 3 Jun 2008 03:30:01 +0000 (23:30 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=573

code/main.py
code/validation.py

index 073f81d..8a5c178 100755 (executable)
@@ -357,7 +357,6 @@ def modifyDict(username, state, fields):
         kws = dict([(kw, fields.getfirst(kw)) for kw in 'machine_id owner admin contact name memory vmtype disksize'.split()])
         validate = validation.Validate(username, state, **kws)
         machine = validate.machine
-        print >> sys.stderr, machine, machine.administrator, kws['admin']
         oldname = machine.name
 
         if hasattr(validate, 'memory'):
index df5bdcc..a152946 100644 (file)
@@ -227,7 +227,7 @@ def testOwner(user, owner, machine=None):
     if owner == user:
         return owner
     if machine is not None and owner in (machine.owner, None):
-        return None
+        return machine.owner
     if owner is None:
         raise InvalidInput('owner', owner, "Owner must be specified")
     try: