mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-31 17:19:17 -03:30
Cleanup Vagrant VMs before molecule and vagrant CI (#6009)
This commit is contained in:
10
tests/scripts/vagrant_clean.sh
Executable file
10
tests/scripts/vagrant_clean.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
# Cleanup vagrant VMs to avoid name conflicts
|
||||
|
||||
for i in $(virsh list --name)
|
||||
do
|
||||
virsh destroy "$i"
|
||||
virsh undefine "$i"
|
||||
done
|
||||
Reference in New Issue
Block a user