Ignore:
Timestamp:
Jun 2, 2008, 11:58:25 PM (16 years ago)
Author:
ecprice
Message:

Fix more bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/main.py

    r576 r577  
    145145def parseCreate(username, state, fields):
    146146    kws = dict([(kw, fields.getfirst(kw)) for kw in 'name owner memory disksize vmtype cdrom clone_from'.split()])
    147     validate = validation.Validate(username, state, **kws)
     147    validate = validation.Validate(username, state, strict=True, **kws)
    148148    return dict(contact=username, name=validate.name, memory=validate.memory,
    149149                disksize=validate.disksize, owner=validate.owner, machine_type=validate.vmtype,
     
    155155    try:
    156156        parsed_fields = parseCreate(username, state, fields)
    157         machine = controls.createVm(username, **parsed_fields)
     157        machine = controls.createVm(username, state, **parsed_fields)
    158158    except InvalidInput, err:
    159159        pass
Note: See TracChangeset for help on using the changeset viewer.