Skip to content

Commit 6617228

Browse files
authored
Merge pull request #810 from jschoiRR/europa-2026
[Mold Europa] 2026.04.15 일자 diplo-> europa 최신 소스 병합 후 빌드 오류 수정
2 parents 5019378 + 47cf55d commit 6617228

4 files changed

Lines changed: 3 additions & 33 deletions

File tree

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

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -975,36 +975,6 @@ protected void sendExceededBackupLimitAlert(String ownerUuid, Resource.ResourceT
975975
message, message + " Please, use the 'updateResourceLimit' API to increase the backup limit.");
976976
}
977977

978-
public List<BackupSchedule> listBackupSchedules(ListBackupScheduleCmd cmd) {
979-
Account caller = CallContext.current().getCallingAccount();
980-
Long id = cmd.getId();
981-
Long vmId = cmd.getVmId();
982-
983-
if (vmId != null) {
984-
final VMInstanceVO vm = findVmById(vmId);
985-
validateBackupForZone(vm.getDataCenterId());
986-
accountManager.checkAccess(CallContext.current().getCallingAccount(), null, true, vm);
987-
}
988-
989-
Filter searchFilter = new Filter(BackupScheduleVO.class, "id", true, null, null);
990-
SearchBuilder<BackupScheduleVO> searchBuilder = backupScheduleDao.createSearchBuilder();
991-
searchBuilder.and("id", searchBuilder.entity().getId(), SearchCriteria.Op.EQ);
992-
if (vmId != null) {
993-
searchBuilder.and("vmId", searchBuilder.entity().getVmId(), SearchCriteria.Op.EQ);
994-
}
995-
996-
SearchCriteria<BackupScheduleVO> sc = searchBuilder.create();
997-
if (id != null) {
998-
sc.setParameters("id", id);
999-
}
1000-
if (vmId != null) {
1001-
sc.setParameters("vmId", vmId);
1002-
}
1003-
1004-
Pair<List<BackupScheduleVO>, Integer> result = backupScheduleDao.searchAndCount(sc, searchFilter);
1005-
return new ArrayList<>(result.first());
1006-
}
1007-
1008978
/**
1009979
* Gets the backup schedule ID from the async job's payload.
1010980
*

server/src/main/java/org/apache/cloudstack/vm/ImportVmTasksManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ private void updateTaskDescriptionWithV2KStatus(ImportVMTaskResponse response, I
379379
}
380380

381381
private void cleanupAblestackV2KDomain(ImportVMTaskVO task) {
382-
if (task == null || task.getConvertHostId() == null || StringUtils.isBlank(task.getSourceVMName())) {
382+
if (task == null || task.getConvertHostId() <= 0 || StringUtils.isBlank(task.getSourceVMName())) {
383383
return;
384384
}
385385
HostVO convertHost = hostDao.findById(task.getConvertHostId());

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3958,7 +3958,7 @@ protected void cleanupAblestackV2KDomain(ImportVMTaskVO task, HostVO convertHost
39583958
}
39593959

39603960
protected void cleanupAblestackV2KDomain(ImportVMTaskVO task) {
3961-
if (task == null || task.getConvertHostId() == null) {
3961+
if (task == null || task.getConvertHostId() <= 0) {
39623962
return;
39633963
}
39643964
HostVO convertHost = hostDao.findById(task.getConvertHostId());

ui/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ fetch('config.json?ts=' + Date.now())
127127
})
128128
}).catch(error => {
129129
renderError(error)
130-
})
130+
})

0 commit comments

Comments
 (0)