mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
delete .vagrant dir when cleaning up buildserver vm
This commit is contained in:
parent
437ff7c3f0
commit
8cfd3ca770
1 changed files with 6 additions and 0 deletions
|
@ -304,6 +304,12 @@ def destroy_current_image(v, serverdir):
|
||||||
v.destroy()
|
v.destroy()
|
||||||
elif options.verbose:
|
elif options.verbose:
|
||||||
print('Cannot run destroy vagrant setup since Vagrantfile.yaml is not setup!')
|
print('Cannot run destroy vagrant setup since Vagrantfile.yaml is not setup!')
|
||||||
|
|
||||||
|
try:
|
||||||
|
shutil.rmtree(os.path.join(serverdir, '.vagrant'))
|
||||||
|
except Exception as e:
|
||||||
|
print("could not delete vagrant dir: %s, %s" % (os.path.join(serverdir, '.vagrant'), e))
|
||||||
|
|
||||||
if config['vm_provider'] == 'libvirt':
|
if config['vm_provider'] == 'libvirt':
|
||||||
import libvirt
|
import libvirt
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue