Skip to content

Commit 00d6926

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-16 Fix locationType and format issue
1 parent d903823 commit 00d6926

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/snapshot/StorageSystemSnapshotStrategy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ private void verifySnapshotType(SnapshotInfo snapshotInfo) {
276276

277277
private void verifyLocationType(SnapshotInfo snapshotInfo) {
278278
VolumeInfo volumeInfo = snapshotInfo.getBaseVolume();
279-
279+
logger.info("verifyLocationType: {}", snapshotInfo.getLocationType());
280+
logger.info("verifyLocationType: {}", volumeInfo.getFormat());
280281
Set<ImageFormat> supportedFormats = Set.of(ImageFormat.VHD, ImageFormat.QCOW2, ImageFormat.RAW);
281282

282283
if (snapshotInfo.getLocationType() == Snapshot.LocationType.SECONDARY && !supportedFormats.contains(volumeInfo.getFormat())) {

0 commit comments

Comments
 (0)