X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/17a4873ae3f072a06d3cdf854318f2ee6e99b111..b1f4849b34267d7c937600e777b79d9455266df1:/templates/main.py diff --git a/templates/main.py b/templates/main.py index b809430..f64fe3d 100755 --- a/templates/main.py +++ b/templates/main.py @@ -511,10 +511,7 @@ def getDiskInfo(data_dict, machine): def deleteVM(machine): """Delete a VM.""" - try: - remctl('destroy', machine.name) - except: - pass + remctl('destroy', machine.name, err=True) transaction = ctx.current.create_transaction() delete_disk_pairs = [(machine.name, d.guest_device_name) for d in machine.disks] try: