]> xenbits.xensource.com Git - libvirt.git/commit
virsh: don't reject undefine on active domain
authorEric Blake <eblake@redhat.com>
Thu, 11 Aug 2011 22:48:00 +0000 (16:48 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 12 Aug 2011 13:39:25 +0000 (07:39 -0600)
commit9a0ec36346ea46b2382ee61ccf3c26fd4f7821fb
tree2f3c0be35d0485e685c88fc133b6c83290afa376
parentce7244a014d327b4cc229f350c228fbc82fc15f2
virsh: don't reject undefine on active domain

The public API documents that undefine may be used to transition a
running persistent domain into a transient one.  Many drivers still
do not support this usage, but virsh shouldn't be getting in the
way of those that do support it.

This also drops a redundant conditional; vshCommandOptString
guaranteed that name was non-NULL.

* tools/virsh.c (cmdUndefine): Allow undefine on active domains;
the drivers may still reject it, but it is a valid API usage.
* tests/undefine (error): Fix the test to match.
tests/undefine
tools/virsh.c