projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3b0e36
)
Don't fail to delete the VM because it wasn't running
author
Eric Price
<ecprice@mit.edu>
Wed, 10 Oct 2007 00:10:18 +0000
(20:10 -0400)
committer
Eric Price
<ecprice@mit.edu>
Wed, 10 Oct 2007 00:10:18 +0000
(20:10 -0400)
svn path=/trunk/web/; revision=159
templates/main.py
patch
|
blob
|
history
diff --git
a/templates/main.py
b/templates/main.py
index
c6006f4
..
ccef044
100755
(executable)
--- a/
templates/main.py
+++ b/
templates/main.py
@@
-510,7
+510,10
@@
def getDiskInfo(data_dict, machine):
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: