From c0edba34fec4cac2fed0723e473e1b83d2d8d01c Mon Sep 17 00:00:00 2001 From: Andrzej Telszewski Date: Tue, 9 Jan 2018 21:18:05 -0600 Subject: libraries/libvirt: Bugfix to net-destroy in rc.libvirt Signed-off-by: Robby Workman --- libraries/libvirt/rc.libvirt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libraries') diff --git a/libraries/libvirt/rc.libvirt b/libraries/libvirt/rc.libvirt index 376dcb0d9b889..8f62da5db8343 100644 --- a/libraries/libvirt/rc.libvirt +++ b/libraries/libvirt/rc.libvirt @@ -140,7 +140,7 @@ stop_libvirtd() { guests_managedsave check_processor echo "Stopping libvirtd..." - for network in $(/usr/sbin/virsh net-list | tail -n +3 | awk '{print $1}'); do + for network in $(/usr/sbin/virsh net-list --name); do /usr/sbin/virsh net-destroy "$network" done kill -TERM $(cat $LIBVIRTD_PIDFILE) -- cgit v1.2.3