mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
print json
This commit is contained in:
@@ -173,7 +173,7 @@ func (opap *OPAProcessor) processRule(rule *reporthandling.PolicyRule) (*reporth
|
||||
|
||||
inputRawResources := workloadinterface.ListMetaToMap(inputResources)
|
||||
jsonStr, _ := json.Marshal(inputRawResources)
|
||||
fmt.Println(jsonStr)
|
||||
fmt.Println(string(jsonStr))
|
||||
|
||||
ruleReport, err := opap.runOPAOnSingleRule(rule, inputRawResources, ruleData)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user