diff --git a/makebuildserver b/makebuildserver index 2fc75d82..c4e5e02e 100755 --- a/makebuildserver +++ b/makebuildserver @@ -304,6 +304,12 @@ def destroy_current_image(v, serverdir): v.destroy() elif options.verbose: 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': import libvirt try: