actually don't check for errors
authorTim Abbott <tabbott@mit.edu>
Wed, 10 Oct 2007 02:04:42 +0000 (22:04 -0400)
committerTim Abbott <tabbott@mit.edu>
Wed, 10 Oct 2007 02:04:42 +0000 (22:04 -0400)
svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=160

files/usr/sbin/sipb-xen-lvm

index 2a3fade..f69c2a6 100755 (executable)
@@ -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 *