]> xenbits.xensource.com Git - libvirt.git/commit
Improve filtering of Xen domain0 in libvirt-guests
authorJim Fehlig <jfehlig@suse.com>
Fri, 15 Dec 2017 22:28:49 +0000 (15:28 -0700)
committerJim Fehlig <jfehlig@suse.com>
Mon, 18 Dec 2017 16:24:13 +0000 (09:24 -0700)
commit8599aedd434a2843dca7fae37bd397f07a584c1a
tree1d6adf06959ec232fc03a5f1e54b16ec10d38268
parenta8582e3656d626a0728bbbfb4fd715aa51676522
Improve filtering of Xen domain0 in libvirt-guests

The list_guests function in libvirt-guests uses 'grep -v' to filter
Xen domain0 from a list of guests. If domain0 is the only item in
the list, 'grep -v' returns 1, causing the 'stop' operation to fail
when action is 'suspend'. Improve the filtering by using sed to remove
domain0 from the list of guests.
tools/libvirt-guests.sh.in