Skip to content

Commit cfc9c6f

Browse files
committed
Remove import vm from restorebackuptoinstance
1 parent 3b317e0 commit cfc9c6f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/src/main/java/org/apache/cloudstack/backup/BackupManagerImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,6 @@ public List<DiskOfferingInfo> getDataDiskOfferingListFromBackup(Backup backup) {
858858
}
859859

860860
@Override
861-
@ActionEvent(eventType = EventTypes.EVENT_VM_BACKUP_RESTORE_TO_NEW_VM, eventDescription = "Resoring backup to new vm", async = true)
862861
public boolean restoreBackupToVM(final Long backupId, final Long vmId) throws ResourceUnavailableException {
863862
final BackupVO backup = backupDao.findById(backupId);
864863
if (backup == null) {
@@ -931,10 +930,7 @@ public boolean restoreBackupToVM(final Long backupId, final Long vmId) throws Re
931930
}
932931
updateVolumeState(vm, Volume.Event.RestoreSucceeded, Volume.State.Ready);
933932
updateVmState(vm, VirtualMachine.Event.RestoringSuccess, VirtualMachine.State.Stopped);
934-
935-
return importRestoredVM(vm.getDataCenterId(), vm.getDomainId(), vm.getAccountId(), vm.getUserId(),
936-
vm.getInstanceName(), vm.getHypervisorType(), backup);
937-
933+
return true;
938934
}
939935

940936
@Override

0 commit comments

Comments
 (0)