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

tools: Exclude Xen dom0 from libvirt-guests.sh list

With newer versions of libvirt Domain-0 is again visible in the list of
running guests but it should not be considered as a guest for shutdown
or suspend.

Signed-off-by Stefan Bader <stefan.bader@canonical.com>
上级 69722fd7
......@@ -121,7 +121,7 @@ list_guests() {
return 1
fi
echo $list
echo "$list" | grep -v 00000000-0000-0000-0000-000000000000
}
# guest_name URI UUID
......@@ -539,7 +539,7 @@ gueststatus() {
for uri in $URIS; do
set +f
echo "* $uri URI:"
retval run_virsh "$uri" list || echo
retval run_virsh "$uri" list | grep -v "Domain-0" || echo
done
set +f
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册