From 299a58d195b60369a2ba51ed3d275acecab0957f Mon Sep 17 00:00:00 2001 From: Igor Lomba <114568996+igorlombacx@users.noreply.github.com> Date: Fri, 29 Sep 2023 09:50:27 +0100 Subject: [PATCH] fix async report format summaryJson (#588) --- internal/commands/result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/result.go b/internal/commands/result.go index 6615b0e73..906644b57 100644 --- a/internal/commands/result.go +++ b/internal/commands/result.go @@ -867,7 +867,7 @@ func createReport(format, convertNotAvailableNumberToZero(summary) return writeHTMLSummary(summaryRpt, summary) } - if printer.IsFormat(format, printer.FormatSummaryJSON) && isValidScanStatus(summary.Status, printer.FormatSummaryJSON) { + if printer.IsFormat(format, printer.FormatSummaryJSON) { summaryRpt := createTargetName(targetFile, targetPath, printer.FormatJSON) convertNotAvailableNumberToZero(summary) return exportJSONSummaryResults(summaryRpt, summary)