Changeset 159


Ignore:
Timestamp:
Oct 9, 2007, 8:10:18 PM (17 years ago)
Author:
ecprice
Message:

Don't fail to delete the VM because it wasn't running

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/templates/main.py

    r158 r159  
    511511def deleteVM(machine):
    512512    """Delete a VM."""
    513     remctl('destroy', machine.name)
     513    try:
     514        remctl('destroy', machine.name)
     515    except:
     516        pass
    514517    transaction = ctx.current.create_transaction()
    515518    delete_disk_pairs = [(machine.name, d.guest_device_name) for d in machine.disks]
Note: See TracChangeset for help on using the changeset viewer.