c12s-kubespray/tests/scripts/vagrant_clean.sh

10 lines
No EOL
163 B
Bash
Executable file

#!/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