1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

tools: Ignore newlines in libvirt-guests.sh guest list

The list file expects all guest UUIDs on the same line as the URI
which the guests run on. This does not happen when the list is
echo'ed in quotes. When stripping the quotes, newlines get transformed
into spaces. Without this, only the first guest on the list is actually
handled.

Based on a fix by Omar Siam <simar@gmx.net>

Bug-Ubuntu: http://bugs.launchpad.net/bugs/1591695

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
This commit is contained in:
Stefan Bader 2016-10-07 09:56:32 +02:00 committed by Michal Privoznik
parent aafa297044
commit 69722fd7ac

View File

@ -499,7 +499,7 @@ stop() {
fi
if [ -n "$list" ]; then
echo "$uri" "$list" >>"$LISTFILE"
echo "$uri" $list >>"$LISTFILE"
fi
done
set +f