minor fix

This commit is contained in:
kooomix
2022-11-29 14:55:30 +02:00
parent 3942583b1d
commit ec56e69a3c

View File

@@ -156,8 +156,6 @@ func (opap *OPAProcessor) processRule(rule *reporthandling.PolicyRule, fixedCont
postureControlInputs := opap.regoDependenciesData.GetFilteredPostureControlInputs(rule.ConfigInputs) // get store
dataControlInputs := map[string]string{"cloudProvider": opap.OPASessionObj.Report.ClusterCloudProvider}
postureControlInputs["cloudProvider"] = []string{opap.OPASessionObj.Report.ClusterCloudProvider}
// Merge configurable control input and fixed control input
for k, v := range fixedControlInputs {
postureControlInputs[k] = v