From 4d5a090ff15267db03697a074944a1b0687e94e3 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 9 Oct 2007 22:04:42 -0400 Subject: [PATCH] actually don't check for errors svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=160 --- files/usr/sbin/sipb-xen-lvm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 * -- 1.7.9.5