From e6f45cd39121d4b9c87959f5cac9d94dff38722d Mon Sep 17 00:00:00 2001 From: Yair Slobodin Date: Wed, 18 Dec 2024 14:55:36 +0200 Subject: [PATCH 1/2] typo --- pkg/io/confio/parse_sgs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/io/confio/parse_sgs.go b/pkg/io/confio/parse_sgs.go index 2931b627..31d7c9bf 100644 --- a/pkg/io/confio/parse_sgs.go +++ b/pkg/io/confio/parse_sgs.go @@ -45,7 +45,7 @@ func ReadSGs(filename string) (*ir.SGCollection, error) { SGName: sgName, InboundRules: inbound, OutboundRules: outbound, - Targets: transalteTargets(&sg.SecurityGroup), + Targets: transalateTargets(&sg.SecurityGroup), } } return result, nil @@ -154,7 +154,7 @@ func translateLocal(local vpcv1.SecurityGroupRuleLocalIntf) (*netset.IPBlock, er } // translate SG targets -func transalteTargets(sg *vpcv1.SecurityGroup) []string { +func transalateTargets(sg *vpcv1.SecurityGroup) []string { if len(sg.Targets) == 0 { log.Printf("Warning: Security Groups %s does not have attached resources", *sg.Name) } From 2ddde89484c68a4d87ed74d127eae49bb3f24585 Mon Sep 17 00:00:00 2001 From: Yair Slobodin Date: Wed, 18 Dec 2024 14:58:20 +0200 Subject: [PATCH 2/2] another typo --- pkg/io/confio/parse_sgs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/io/confio/parse_sgs.go b/pkg/io/confio/parse_sgs.go index 31d7c9bf..9d06f7b5 100644 --- a/pkg/io/confio/parse_sgs.go +++ b/pkg/io/confio/parse_sgs.go @@ -45,7 +45,7 @@ func ReadSGs(filename string) (*ir.SGCollection, error) { SGName: sgName, InboundRules: inbound, OutboundRules: outbound, - Targets: transalateTargets(&sg.SecurityGroup), + Targets: translateTargets(&sg.SecurityGroup), } } return result, nil @@ -154,7 +154,7 @@ func translateLocal(local vpcv1.SecurityGroupRuleLocalIntf) (*netset.IPBlock, er } // translate SG targets -func transalateTargets(sg *vpcv1.SecurityGroup) []string { +func translateTargets(sg *vpcv1.SecurityGroup) []string { if len(sg.Targets) == 0 { log.Printf("Warning: Security Groups %s does not have attached resources", *sg.Name) }