Skip to content

Commit

Permalink
During VM import from SD, exclude shared disk when iterating over dis…
Browse files Browse the repository at this point in the history
…k snapshots
  • Loading branch information
shubhaOracle committed Dec 13, 2023
1 parent 12af746 commit 9f095d2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,10 @@ && getParameters().getVm().getDiskMap().containsKey(disk.getId())) {
disk.setActive(false);
setDiskStorageDomainInfo(disk);
saveImage(disk);
snapshotId = disk.getVmSnapshotId();
saveSnapshotIfNotExists(snapshotId, disk);
if (!disk.isShareable()) {
snapshotId = disk.getVmSnapshotId();
saveSnapshotIfNotExists(snapshotId, disk);
}
saveDiskImageDynamic(disk);
}

Expand Down

0 comments on commit 9f095d2

Please sign in to comment.