158158import org .apache .cloudstack .api .response .VirtualMachineResponse ;
159159import org .apache .cloudstack .api .response .VolumeResponse ;
160160import org .apache .cloudstack .api .response .ZoneResponse ;
161- import org .apache .cloudstack .backup .InternalBackupServiceJobType ;
162161import org .apache .cloudstack .backup .InternalBackupServiceJobVO ;
163162import org .apache .cloudstack .backup .BackupOfferingVO ;
164163import org .apache .cloudstack .backup .BackupVO ;
@@ -6436,7 +6435,7 @@ private List<BucketVO> searchForBucketsInternal(ListBucketsCmd cmd) {
64366435 public ListResponse <BackupServiceJobResponse > listBackupServiceJobs (ListBackupServiceJobsCmd cmd ) {
64376436 ListResponse <BackupServiceJobResponse > responses = new ListResponse <>();
64386437 Pair <List <InternalBackupServiceJobVO >, Integer > result = listBackupServiceJobsInternal (cmd );
6439- List <BackupServiceJobResponse > compressionJobResponses = new ArrayList <>();
6438+ List <BackupServiceJobResponse > backupServiceJobResponses = new ArrayList <>();
64406439
64416440 for (InternalBackupServiceJobVO jobVO : result .first ()) {
64426441 BackupVO backup = backupDao .findByIdIncludingRemoved (jobVO .getBackupId ());
@@ -6448,16 +6447,16 @@ public ListResponse<BackupServiceJobResponse> listBackupServiceJobs(ListBackupSe
64486447 if (jobVO .getHostId () != null ) {
64496448 response .setHostId (hostDao .findByIdIncludingRemoved (jobVO .getHostId ()).getUuid ());
64506449 }
6451- compressionJobResponses .add (response );
6450+ backupServiceJobResponses .add (response );
64526451 }
64536452
6454- responses .setResponses (compressionJobResponses , result .second ());
6453+ responses .setResponses (backupServiceJobResponses , result .second ());
64556454 return responses ;
64566455 }
64576456
64586457 private Pair <List <InternalBackupServiceJobVO >, Integer > listBackupServiceJobsInternal (ListBackupServiceJobsCmd cmd ) {
64596458 return internalBackupServiceJobDao .searchAndCountForListApi (cmd .getId (), cmd .getBackupId (), cmd .getHostId (), cmd .getZoneId (),
6460- InternalBackupServiceJobType . valueOf ( cmd .getType () ), cmd .getExecuting (), cmd .getScheduled (), cmd .getStartIndex (), cmd .getPageSizeVal ());
6459+ cmd .getType (), cmd .getExecuting (), cmd .getScheduled (), cmd .getStartIndex (), cmd .getPageSizeVal ());
64616460 }
64626461
64636462 @ Override
0 commit comments