- Timestamp:
- Oct 16, 2007, 1:07:04 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/main.py
r188 r197 218 218 """ 219 219 if cdtype is not None: 220 remctl(' web', 'vmboot', machine.name,220 remctl('control', machine.name, 'create', 221 221 cdtype) 222 222 else: 223 remctl(' web', 'vmboot', machine.name)223 remctl('control', machine.name, 'create') 224 224 225 225 def registerMachine(machine): … … 275 275 Gets and parses xm list --long 276 276 """ 277 value_string, err_string = remctl(' list-long', machine.name, err=True)277 value_string, err_string = remctl('control', machine.name, 'list-long', err=True) 278 278 if 'Unknown command' in err_string: 279 279 raise CodeError("ERROR in remctl list-long %s is not registered" % (machine.name,)) … … 539 539 def deleteVM(machine): 540 540 """Delete a VM.""" 541 remctl(' destroy', machine.name, err=True)541 remctl('control', machine.name, 'destroy', err=True) 542 542 transaction = ctx.current.create_transaction() 543 543 delete_disk_pairs = [(machine.name, d.guest_device_name) for d in machine.disks] … … 571 571 if action == 'Reboot': 572 572 if cdrom is not None: 573 remctl(' reboot', machine.name, cdrom)573 remctl('control', machine.name, 'reboot', cdrom) 574 574 else: 575 remctl(' reboot', machine.name)575 remctl('control', machine.name, 'reboot') 576 576 elif action == 'Power on': 577 577 if maxMemory(user) < machine.memory: … … 580 580 bootMachine(machine, cdrom) 581 581 elif action == 'Power off': 582 remctl(' destroy', machine.name)582 remctl('control', machine.name, 'destroy') 583 583 elif action == 'Shutdown': 584 remctl(' shutdown', machine.name)584 remctl('control', machine.name, 'shutdown') 585 585 elif action == 'Delete VM': 586 586 deleteVM(machine)
Note: See TracChangeset
for help on using the changeset viewer.