From 7aa6c930400061b2b969c4dbf70f8ba12ab88f13 Mon Sep 17 00:00:00 2001 From: shirim Date: Thu, 9 Nov 2023 21:45:09 +0200 Subject: [PATCH] revert CR comment --- pkg/vpcmodel/semanticDiffSubnets.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/vpcmodel/semanticDiffSubnets.go b/pkg/vpcmodel/semanticDiffSubnets.go index 22239622f..502efaa85 100644 --- a/pkg/vpcmodel/semanticDiffSubnets.go +++ b/pkg/vpcmodel/semanticDiffSubnets.go @@ -131,7 +131,8 @@ func (subnetConfConnectivity *SubnetConfigConnectivity) subtract(other *SubnetCo if otherSrc, ok := other.subnetConnectivity[srcInOther]; ok { if otherConn, ok := otherSrc[dstInOther]; ok { // ToDo: https://github.com/np-guard/vpc-network-config-analyzer/issues/199 - if conns.Equals(otherConn) { + subtractConn := conns.Subtract(otherConn) + if subtractConn.IsEmpty() { continue // no diff } connDiff.conn2 = otherConn