Skip to content

Commit a5c11bc

Browse files
committed
Pass scheduleid when creating schedules backups
1 parent b0be7da commit a5c11bc

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

server/src/main/java/com/cloud/configuration/Config.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,6 @@ public enum Config {
13171317
"20",
13181318
"The default maximum number of snapshots that can be created for an account",
13191319
null),
1320-
// TODO : use configKey instead?
13211320
DefaultMaxAccountBackups(
13221321
"Account Defaults",
13231322
ManagementServer.class,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,7 @@ public void scheduleBackups() {
12921292
true, 0);
12931293
final Map<String, String> params = new HashMap<String, String>();
12941294
params.put(ApiConstants.VIRTUAL_MACHINE_ID, "" + vmId);
1295+
params.put(ApiConstants.SCHEDULE_ID, "" + backupScheduleId);
12951296
params.put("ctxUserId", "1");
12961297
params.put("ctxAccountId", "" + vm.getAccountId());
12971298
params.put("ctxStartEventId", String.valueOf(eventId));

0 commit comments

Comments
 (0)