Ignore:
Timestamp:
Apr 21, 2008, 7:14:17 PM (17 years ago)
Author:
ecprice
Message:

Cleaner HVM/paravm validation

File:
1 edited

Legend:

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

    r419 r437  
    100100    remctl('web', 'unregister', machine.name)
    101101
    102 def createVm(owner, contact, name, memory, disk_size, is_hvm, cdrom, clone_from):
     102def createVm(owner, contact, name, memory, disk_size, machine_type, cdrom, clone_from):
    103103    """Create a VM and put it in the database"""
    104104    # put stuff in the table
     
    120120        machine.uuid = uuidToString(randomUUID())
    121121        machine.boot_off_cd = True
    122         machine_type = Type.get_by(hvm=is_hvm)
    123122        machine.type_id = machine_type.type_id
    124123        ctx.current.save(machine)
Note: See TracChangeset for help on using the changeset viewer.