summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-07-01 10:32:15 +0200
committerGerd Hoffmann <kraxel@redhat.com>2024-07-01 10:32:15 +0200
commitcd7de6c996d1c9fea79b46ff7c7da8ecd3cdb379 (patch)
treebca2e5d4cd877097cc077ce23277c479467a1a03
parent35748959a05fa1afa527e9ab6cf46ec79d23fda6 (diff)
downloadipxe-tests-cd7de6c996d1c9fea79b46ff7c7da8ecd3cdb379.tar.gz
cleanup fix
-rw-r--r--libvirt-cleanup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-cleanup.sh b/libvirt-cleanup.sh
index 5166f2b..9283dc8 100644
--- a/libvirt-cleanup.sh
+++ b/libvirt-cleanup.sh
@@ -11,7 +11,7 @@ for domain in $domains; do
done
for network in $networks; do
- if virsh net-list --name | grep -q $domain; then
+ if virsh net-list --name | grep -q $network; then
virsh net-destroy $network
fi
virsh net-undefine $network