diff options
Diffstat (limited to 'libraries/libvirt/rc.libvirt')
-rw-r--r-- | libraries/libvirt/rc.libvirt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |