1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-15 17:50:10 +02:00

fix virsh destroy parameters

This commit is contained in:
Michael Pöhn 2017-03-26 03:34:29 +02:00 committed by Hans-Christoph Steiner
parent 4347c10d9d
commit d180aa2658

View File

@ -144,8 +144,8 @@ class LibvirtBuildVm(FDroidBuildVm):
# this is way more easy and therefore fault tolerant.
# (eg. lookupByName only works on running VMs)
try:
logger.debug('virsh -c qemu:///system destroy', self.srvname)
subprocess.check_call(('virsh', '-c', 'qemu:///system', 'destroy'))
logger.debug('virsh -c qemu:///system destroy %s', self.srvname)
subprocess.check_call(('virsh', '-c', 'qemu:///system', 'destroy', self.srvname))
logger.info("...waiting a sec...")
time.sleep(10)
except subprocess.CalledProcessError as e: