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 *