X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/45977052c371d46988b00c89cda3813239c753e7..4d5a090ff15267db03697a074944a1b0687e94e3:/files/usr/sbin/sipb-xen-lvm 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 *