svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=174
import sys
import os.path
import sys
import os.path
-from subprocess import call
+from subprocess import call, PIPE
def ensureoff(machine):
# Make sure the machine is off, but we don't care about errors if it is already off.
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 *
if subcommand == "lvcreate-all":
from sipb_xen_database import *