Changeset 437 for trunk/packages/sipb-xen-www/code/controls.py
- Timestamp:
- Apr 21, 2008, 7:14:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/controls.py
r419 r437 100 100 remctl('web', 'unregister', machine.name) 101 101 102 def createVm(owner, contact, name, memory, disk_size, is_hvm, cdrom, clone_from):102 def createVm(owner, contact, name, memory, disk_size, machine_type, cdrom, clone_from): 103 103 """Create a VM and put it in the database""" 104 104 # put stuff in the table … … 120 120 machine.uuid = uuidToString(randomUUID()) 121 121 machine.boot_off_cd = True 122 machine_type = Type.get_by(hvm=is_hvm)123 122 machine.type_id = machine_type.type_id 124 123 ctx.current.save(machine)
Note: See TracChangeset
for help on using the changeset viewer.