mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
use configured vm provider in when calling destroy in makebuildserver
This commit is contained in:
parent
a414aa00ff
commit
4347c10d9d
@ -47,7 +47,7 @@ def get_build_vm(srvdir, provider=None):
|
|||||||
logger.debug('build vm provider \'virtualbox\' selected')
|
logger.debug('build vm provider \'virtualbox\' selected')
|
||||||
return VirtualboxBuildVm(abssrvdir)
|
return VirtualboxBuildVm(abssrvdir)
|
||||||
else:
|
else:
|
||||||
logger.warn('unsupported provider \'%s\' requested', provider)
|
logger.warn('build vm provider not supported: \'%s\'', provider)
|
||||||
has_libvirt_machine = isdir(joinpath(abssrvdir, '.vagrant',
|
has_libvirt_machine = isdir(joinpath(abssrvdir, '.vagrant',
|
||||||
'machines', 'default', 'libvirt'))
|
'machines', 'default', 'libvirt'))
|
||||||
has_vbox_machine = isdir(joinpath(abssrvdir, '.vagrant',
|
has_vbox_machine = isdir(joinpath(abssrvdir, '.vagrant',
|
||||||
|
@ -483,7 +483,7 @@ def main():
|
|||||||
tail = fdroidserver.tail.Tail(logfilename)
|
tail = fdroidserver.tail.Tail(logfilename)
|
||||||
tail.start()
|
tail.start()
|
||||||
|
|
||||||
vm = fdroidserver.vmtools.get_build_vm(serverdir)
|
vm = fdroidserver.vmtools.get_build_vm(serverdir, provider=config['vm_provider'])
|
||||||
if options.clean:
|
if options.clean:
|
||||||
vm.destroy()
|
vm.destroy()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user