svn path=/trunk/packages/sipb-xen-www/; revision=573
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'):
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: