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 mwperina committed May 14, 2024
1 parent 8be3e8d commit 8372b1e
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 8372b1e

Please sign in to comment.