Skip to content

Commit f51e048

Browse files
committed
Fix issue when restoring backup after migration of volume
1 parent a6ccde4 commit f51e048

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private BackupVO createBackupObject(VirtualMachine vm, String backupPath) {
215215
public boolean restoreVMFromBackup(VirtualMachine vm, Backup backup) {
216216
List<Backup.VolumeInfo> backedVolumes = backup.getBackedUpVolumes();
217217
List<VolumeVO> volumes = backedVolumes.stream()
218-
.map(volume -> volumeDao.findByUuid(volume.getUuid()))
218+
.map(volume -> volumeDao.findByUuid(volume.getPath()))
219219
.sorted((v1, v2) -> Long.compare(v1.getDeviceId(), v2.getDeviceId()))
220220
.collect(Collectors.toList());
221221

0 commit comments

Comments
 (0)