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 shubha.kulkarni@oracle.com

Signed-off-by: ShubhaOracle <Shubha.kulkarni@oracle.com>
  • Loading branch information
shubhaOracle authored and michalskrivanek committed May 9, 2024
1 parent 8be3e8d commit 18b3083
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 18b3083

Please sign in to comment.