mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
69722fd7ac
commit
cc38d5661f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue