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. Signed-off-by: Shubha Kulkarni [email protected]

Signed-off-by: ShubhaOracle <[email protected]>
  • Loading branch information
shubhaOracle committed Dec 13, 2023
1 parent 12af746 commit 421885d
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 421885d

Please sign in to comment.