Pearl1594 commented on code in PR #12549:
URL: https://github.com/apache/cloudstack/pull/12549#discussion_r2747309047
##########
plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java:
##########
@@ -215,7 +215,7 @@ private BackupVO createBackupObject(VirtualMachine vm,
String backupPath) {
public boolean restoreVMFromBackup(VirtualMachine vm, Backup backup) {
List<Backup.VolumeInfo> backedVolumes = backup.getBackedUpVolumes();
List<VolumeVO> volumes = backedVolumes.stream()
- .map(volume -> volumeDao.findByUuid(volume.getUuid()))
+ .map(volume -> volumeDao.findByUuid(volume.getPath()))
Review Comment:
my bad - I did the test / changes and 4.22 but made the wrong change on 4.20
- I meant to change this: to getPath from getUUID() -
https://github.com/apache/cloudstack/blob/4.22/plugins/backup/nas/src/main/java/org/apache/cloudstack/backup/NASBackupProvider.java#L295
I'll fix it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]