]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix inactive snapshot revert
authorJán Tomko <jtomko@redhat.com>
Thu, 20 Jan 2022 13:53:33 +0000 (14:53 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 20 Jan 2022 14:16:18 +0000 (15:16 +0100)
commit76deb656132bb8817ddae4b7f417930c4db824c9
tree6ec169b704693d470d52756c2a58ad3c03b9198e
parent9911a6f2ff888a53cc27bdca10efe31fd371dfb8
qemu: fix inactive snapshot revert

The commit splitting out the qemuSnapshotRevertInactive function
dropped the 'defined = true' line by accident and instead
returned -1, leaving the user with a cryptic error:
error: An error occurred, but the cause is unknown

https://bugzilla.redhat.com/show_bug.cgi?id=2039136
https://gitlab.com/libvirt/libvirt/-/issues/266

Fixes: 85e4a13c3f19078fb6af5ffb4a80022c142cbc7e
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_snapshot.c