qemu_snapshot: enable deletion of external snapshots

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Pavel Hrdina 2023-01-05 10:29:45 +01:00
parent cadbf40d05
commit 85931fce74

View File

@ -3103,9 +3103,9 @@ qemuSnapshotDeleteValidate(virDomainObj *vm,
}
if (virDomainSnapshotIsExternal(snap) &&
!(flags & VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY)) {
(flags & VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("deletion of external disk snapshots not supported"));
_("deletion of external disk snapshots with children not supported"));
return -1;
}