Comment # 3 on bug 1048783 from
Meh, fixed upstream a long time ago, please backport.

commit 69722fd7ac854f95eac65a4bf3fd86e65fbc470f
Author: Stefan Bader <stefan.bader@canonical.com>
Date:   Fri Oct 7 09:56:32 2016 +0200

    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>

diff --git a/tools/libvirt-guests.sh.in b/tools/libvirt-guests.sh.in
index 7f74b85c19d7..7380b4b809b7 100644
--- a/tools/libvirt-guests.sh.in
+++ b/tools/libvirt-guests.sh.in
@@ -499,7 +499,7 @@ stop() {
         fi

         if [ -n "$list" ]; then
-            echo "$uri" "$list" >>"$LISTFILE"
+            echo "$uri" $list >>"$LISTFILE"
         fi
     done
     set +f


You are receiving this mail because: