From cfa3993b79dfd8fdf0dbf0631af304f928d56f31 Mon Sep 17 00:00:00 2001 From: Daniel-GrunbergerCA Date: Tue, 21 Dec 2021 20:31:12 +0200 Subject: [PATCH] print json --- opaprocessor/processorhandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opaprocessor/processorhandler.go b/opaprocessor/processorhandler.go index 6a03d967..374f1923 100644 --- a/opaprocessor/processorhandler.go +++ b/opaprocessor/processorhandler.go @@ -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 {