Skip to content

Commit

Permalink
combining cli reports
Browse files Browse the repository at this point in the history
  • Loading branch information
NoSkillGirl committed Nov 4, 2020
1 parent 0c471f9 commit e4e703f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/kyverno/apply/command.go
Expand Up @@ -317,6 +317,10 @@ func printReportOrViolation(policyReport bool, engineResponses []response.Engine
yamlResp, _ := yaml1.Marshal(u)
fmt.Println(string(yamlResp))
}
fmt.Println("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%")
report, _ := generateCLIraw(resps)
yamlReport, _ := yaml1.Marshal(report)
fmt.Println(string(yamlReport))
} else {
rcCount := rc.pass + rc.fail + rc.warn + rc.error + rc.skip
if rcCount < len(resourcePaths) {
Expand Down

0 comments on commit e4e703f

Please sign in to comment.