Skip to content

Commit

Permalink
core: fix checking if an active snapshot is set with memory for resto…
Browse files Browse the repository at this point in the history
…ring purpose

This is a followup fix for
oVirt#653 (based on a comment review).
by including the metadata volumes (in addition to memory ones) when checking if
an active snapshot is set with memory for restoring.
  • Loading branch information
sgratch committed Sep 21, 2022
1 parent 89a8939 commit 4064f5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private void restoreVmConfigFromSnapshot() {
getCompensationContext(),
getCurrentUser(),
new VmInterfaceManager(getMacPool()),
snapshot.getMemoryDiskId() != null);
snapshot.containsMemory());

// custom preview - without leases
if (!getParameters().isRestoreLease()) {
Expand Down

0 comments on commit 4064f5d

Please sign in to comment.