]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: fix variable scope in in check_guests_shutdown
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 19 Mar 2018 11:44:31 +0000 (12:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 19 Mar 2018 12:06:03 +0000 (13:06 +0100)
commit7e476356c28a7fccd40eebbd8dac83e49e782010
tree3915e8c7bf04020991f5b4b7005153e331446888
parent677aaeb128f83f15088557cd12a3340f2137d7b6
tools: fix variable scope in in check_guests_shutdown

libvirt-guests.sh when run with more active guests than requested to
shut down in parallel will run until it times out only shutting down
the first set of guests.

This patch fixes parallel shutdown by fixing a variable scope issue
where check_guests_shutdown unintentionally reset $guests which
prevented further progress.

Fixes: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1688508
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
tools/libvirt-guests.sh.in