]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Check that domain is running when starting console
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 12 Nov 2009 14:14:23 +0000 (14:14 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 13 Nov 2009 11:50:16 +0000 (11:50 +0000)
commitc7a8e1bf74996ed464ca3b71edc2a12b6c68c167
tree6f5f93b87a181539ebd5c3de3127025c5ff303e0
parent007f016b2df8f5df8fffd66a35656cdfae784bb1
Check that domain is running when starting console

The 'virsh console' command did not check if the domain was
already running before attempting to fetch the XML and extract
the console PTY path. This caused a slightly unhelpful / misleading
error message for the user. The explicit check ensures the user
gets an explicit 'domain is not running' message.

* tools/virsh.c: Validate that state != VIR_DOMAIN_SHUTOFF in
  virsh console command
tools/virsh.c