From: Tim Abbott Date: Wed, 10 Oct 2007 02:04:42 +0000 (-0400) Subject: actually don't check for errors X-Git-Tag: sipb-xen-remctl-auto/1.0.4~2 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/commitdiff_plain/4d5a090ff15267db03697a074944a1b0687e94e3 actually don't check for errors svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=160 --- diff --git a/files/usr/sbin/sipb-xen-lvm b/files/usr/sbin/sipb-xen-lvm index 2a3fade..f69c2a6 100755 --- a/files/usr/sbin/sipb-xen-lvm +++ b/files/usr/sbin/sipb-xen-lvm @@ -15,7 +15,10 @@ subcommand = sys.argv[1] def ensureoff(machine): # Make sure the machine is off, but we don't care about errors if it is already off. - rv = call(["/usr/sbin/xm", "destroy", prefix + machine]) + try: + rv = call(["/usr/sbin/xm", "destroy", prefix + machine]) + except: + pass if subcommand == "lvcreate-all": from sipb_xen_database import *