From: Eric Price Date: Tue, 9 Oct 2007 23:23:39 +0000 (-0400) Subject: destroy machines before trying to delete them. X-Git-Tag: sipb-xen-www/1~74 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/c3b0e360288fbcc074815bbac76ff54078a6ca58 destroy machines before trying to delete them. svn path=/trunk/web/; revision=158 --- diff --git a/templates/main.py b/templates/main.py index f798cbf..c6006f4 100755 --- a/templates/main.py +++ b/templates/main.py @@ -510,6 +510,7 @@ def getDiskInfo(data_dict, machine): def deleteVM(machine): """Delete a VM.""" + remctl('destroy', machine.name) transaction = ctx.current.create_transaction() delete_disk_pairs = [(machine.name, d.guest_device_name) for d in machine.disks] try: