]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: Ignore newlines in libvirt-guests.sh guest list
authorStefan Bader <stefan.bader@canonical.com>
Fri, 7 Oct 2016 07:56:32 +0000 (09:56 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Oct 2016 08:52:08 +0000 (16:52 +0800)
commit69722fd7ac854f95eac65a4bf3fd86e65fbc470f
tree62fb5bb09baf59d374174b9069bea7a9f1df1bb2
parentaafa29704408f98f77850a4bf487e354bf1df65d
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>
tools/libvirt-guests.sh.in