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>
This commit is contained in:
Stefan Bader 2016-10-07 09:56:33 +02:00 committed by Michal Privoznik
parent 69722fd7ac
commit cc38d5661f
1 changed files with 2 additions and 2 deletions

View File

@ -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
}