Cleanup virsh volumes in Vagrant CI (#6688)
This commit is contained in:
parent
6da385de9d
commit
686316b390
1 changed files with 7 additions and 0 deletions
|
@ -9,4 +9,11 @@ for i in $(virsh list --name)
|
||||||
do
|
do
|
||||||
virsh destroy "$i"
|
virsh destroy "$i"
|
||||||
virsh undefine "$i"
|
virsh undefine "$i"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# Cleanup domain volumes
|
||||||
|
for i in $(virsh vol-list default|grep \.img |grep -v VAGRANTSLASH | cut -f 2 -d ' ')
|
||||||
|
do
|
||||||
|
virsh vol-delete "$i" --pool default
|
||||||
done
|
done
|
Loading…
Reference in a new issue