mirror of https://github.com/apache/cloudstack.git
Handle null mountTimeout in RestoreBackupCommand (#11944)
This commit is contained in:
parent
15c61acedf
commit
3d6cafe193
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue