Skip to content

Commit

Permalink
Merge pull request #130 from kubescape/islastreport
Browse files Browse the repository at this point in the history
fix summary chunk with IsLastReport=true
  • Loading branch information
dwertent committed Jun 30, 2023
2 parents d7db7bf + 7a15a28 commit 30f468f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/v1/armo_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (a *ArmoAdapter) sendSummaryAndVulnerabilities(ctx context.Context, report
firstVulnerabilitiesChunk = nil
} else {
//first chunk is not included in the summary, so if there are vulnerabilities to send set the last part to false
report.PaginationInfo.IsLastReport = firstChunkVulnerabilitiesCount != 0
report.PaginationInfo.IsLastReport = firstChunkVulnerabilitiesCount == 0
}
//send the summary report
a.postResultsAsGoroutine(ctx, report, eventReceiverURL, report.Summary.ImageTag, report.Summary.WLID, errChan, sendWG)
Expand Down

0 comments on commit 30f468f

Please sign in to comment.