提交 69722fd7 编写于 作者: S Stefan Bader 提交者: Michal Privoznik

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/1591695Signed-off-by: NStefan Bader <stefan.bader@canonical.com>
上级 aafa2970
......@@ -499,7 +499,7 @@ stop() {
fi
if [ -n "$list" ]; then
echo "$uri" "$list" >>"$LISTFILE"
echo "$uri" $list >>"$LISTFILE"
fi
done
set +f
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册