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 sandrobonazzola committed May 6, 2024
1 parent 8b75156 commit 0a1ba82
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 0a1ba82

Please sign in to comment.