Handle null mountTimeout in RestoreBackupCommand (#11944)

This commit is contained in:
Abhisar Sinha 2025-10-30 19:21:39 +05:30 committed by GitHub
parent 15c61acedf
commit 3d6cafe193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,7 @@ public class RestoreBackupCommand extends Command {
}
public Integer getMountTimeout() {
return this.mountTimeout;
return this.mountTimeout == null ? 0 : this.mountTimeout;
}
public void setMountTimeout(Integer mountTimeout) {

View File

@ -405,6 +405,7 @@ public class NASBackupProvider extends AdapterBase implements BackupProvider, Co
restoreCommand.setVmExists(null);
restoreCommand.setVmState(vmNameAndState.second());
restoreCommand.setRestoreVolumeUUID(backupVolumeInfo.getUuid());
restoreCommand.setMountTimeout(NASBackupRestoreMountTimeout.value());
BackupAnswer answer;
try {