Skip to content

Commit

Permalink
Fix Listing backup schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
Pearl1594 committed Sep 30, 2024
1 parent 046870e commit e63029b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void execute() throws ResourceUnavailableException, InsufficientCapacityE
List<BackupSchedule> schedules = backupManager.listBackupSchedule(getVmId());
ListResponse<BackupScheduleResponse> response = new ListResponse<>();
List<BackupScheduleResponse> scheduleResponses = new ArrayList<>();
if (CollectionUtils.isNullOrEmpty(schedules)) {
if (!CollectionUtils.isNullOrEmpty(schedules)) {
for (BackupSchedule schedule : schedules) {
scheduleResponses.add(_responseGenerator.createBackupScheduleResponse(schedule));
}
Expand Down

0 comments on commit e63029b

Please sign in to comment.