import sys
import os.path
-from subprocess import call
+from subprocess import call, PIPE
def check(b):
if not b:
def ensureoff(machine):
# Make sure the machine is off, but we don't care about errors if it is already off.
- try:
- rv = call(["/usr/sbin/xm", "destroy", prefix + machine])
- except:
- pass
+ rv = call(["/usr/sbin/xm", "destroy", prefix + machine], stderr=PIPE)
if subcommand == "lvcreate-all":
from sipb_xen_database import *