From 2ddf2a79eda3e338efc3540f2d15a48595d70887 Mon Sep 17 00:00:00 2001 From: Amit Schendel Date: Thu, 25 Jan 2024 19:16:50 +0200 Subject: [PATCH] Adding variable to function defention Signed-off-by: Amit Schendel --- core/pkg/opaprocessor/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pkg/opaprocessor/utils.go b/core/pkg/opaprocessor/utils.go index 243888a7..eeca1eb0 100644 --- a/core/pkg/opaprocessor/utils.go +++ b/core/pkg/opaprocessor/utils.go @@ -115,7 +115,7 @@ var imageNameNormalizeDefinition = func(bctx rego.BuiltinContext, a *ast.Term) ( var unauthenticatedServiceDeclaration = ®o.Function{ Name: "networkscanner.unauthenticated_service", - Decl: types.NewFunction(types.Args(types.S), types.B), + Decl: types.NewFunction(types.Args(types.S, types.A), types.B), Memoize: true, }