Skip to content

Commit 95da079

Browse files
TonitzppCopilot
andauthored
Update server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
Co-authored-by: Copilot <[email protected]>
1 parent 8c40440 commit 95da079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,7 @@ public Volume changeDiskOfferingForVolumeInternal(Long volumeId, Long newDiskOff
21872187
throw new CloudRuntimeException("Change offering for the volume failed.");
21882188
}
21892189
} catch (Exception e) {
2190-
logger.error("Volume change offering operation failed for volume ID: {} migration failed to storage pool {} due to {}", volumeUuid, suitableStoragePools.get(0).getId(), e.getMessage());
2190+
logger.error("Volume change offering operation failed for volume ID: {} migration failed to storage pool {} due to {}", volumeUuid, suitableStoragePoolsWithEnoughSpace.get(0).getId(), e.getMessage());
21912191
throw new CloudRuntimeException("Change offering for the volume failed.", e);
21922192
}
21932193
}

0 commit comments

Comments
 (0)