]> xenbits.xensource.com Git - libvirt.git/commit
virsh: fix snapshot-create with no xmlfile
authorJán Tomko <jtomko@redhat.com>
Mon, 11 Mar 2013 12:22:21 +0000 (13:22 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 11 Mar 2013 12:39:11 +0000 (13:39 +0100)
commit2fc5ff11ab796a8ad60e0432373c93d0794fbfc6
treeb391494d9eb177dea04f427608826771d1c95e8d
parent531b4fe8d08a67fd8477661bd5c27e9cff5a7e88
virsh: fix snapshot-create with no xmlfile

Properly check the return value of vshCommandOptStringReq for xmlfile:
* error out on incorrect input (--xmlfile '')
* use default XML <domainsnapshot/> with no --xmlfile specified

(Broken by commit b2e8585)

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=919826
tools/virsh-snapshot.c