From 9850c94d984dc88f13970c1222a1130df0d1d013 Mon Sep 17 00:00:00 2001 From: ShiriMoran <139739065+ShiriMoran@users.noreply.github.com> Date: Wed, 10 Jan 2024 08:54:51 +0200 Subject: [PATCH] Update pkg/ibmvpc/sg_analysis.go Co-authored-by: Adi Sosnovich <82078442+adisos@users.noreply.github.com> --- pkg/ibmvpc/sg_analysis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ibmvpc/sg_analysis.go b/pkg/ibmvpc/sg_analysis.go index 7eec3bc72..5969cc79c 100644 --- a/pkg/ibmvpc/sg_analysis.go +++ b/pkg/ibmvpc/sg_analysis.go @@ -327,7 +327,7 @@ func (sga *SGAnalyzer) rulesInConnectivity(target string, conn *common.Connectio analyzedConns, ipb := sga.getAnalyzedConnsIPB(target, isIngress) for definedTarget, rules := range analyzedConns.contribRules { if ipb.ContainedIn(definedTarget) { - if conn != nil { // connection not part of the query + if conn != nil { // connection is part of the query contained, err := conn.ContainedIn(analyzedConns.allowedconns[definedTarget]) if err != nil { return nil, err