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
#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 authored and ahadas committed Sep 21, 2022
1 parent 886e15c commit 315f18d
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 315f18d

Please sign in to comment.