qemu_snapshot: allow snapshot revert for external snapshots

Now that the support to revert external snapshots is implemented we can
drop this check.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Pavel Hrdina 2023-01-31 23:58:48 +01:00
parent 88d0e6748d
commit cb3bc96e67
1 changed files with 0 additions and 6 deletions

View File

@ -1892,12 +1892,6 @@ qemuSnapshotRevertValidate(virDomainObj *vm,
return -1;
}
if (virDomainSnapshotIsExternal(snap)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("revert to external snapshot not supported yet"));
return -1;
}
if (!snap->def->dom) {
virReportError(VIR_ERR_SNAPSHOT_REVERT_RISKY,
_("snapshot '%1$s' lacks domain '%2$s' rollback info"),