svn path=/trunk/web/; revision=159
def deleteVM(machine):
"""Delete a VM."""
def deleteVM(machine):
"""Delete a VM."""
- remctl('destroy', machine.name)
+ try:
+ remctl('destroy', machine.name)
+ except:
+ pass
transaction = ctx.current.create_transaction()
delete_disk_pairs = [(machine.name, d.guest_device_name) for d in machine.disks]
try:
transaction = ctx.current.create_transaction()
delete_disk_pairs = [(machine.name, d.guest_device_name) for d in machine.disks]
try: