]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsh: don't list unknown domains
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 30 Oct 2014 13:39:04 +0000 (14:39 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 3 Nov 2014 15:43:23 +0000 (16:43 +0100)
commit1eb53f05bc82a72e30d3efc594f0a7ca4a3c60c3
tree57b77987e73fdc0a04013d229410a324dc546ab1
parentb3880bbe97bd0881d7860cff25c1409e74f2e9ab
virsh: don't list unknown domains

When the list of domains is fetched and being printed, but in the
meantime one domain was undefined before its status was fetched, the
output then includes domain with "no state".  With this patch, such
domain is skipped over as consecutive 'virsh list --all' (or the same
one ran a second later) wouldn't list it anyway.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh-domain-monitor.c