From 3c0321e044f2aa23a35fb9d58fc65a4fb4ca9d55 Mon Sep 17 00:00:00 2001 From: Louis TOUSSAINT Date: Thu, 1 Apr 2021 11:16:24 +0200 Subject: [PATCH] Issue 331: Typo in aws_security_group_defaults / aws_security_group_rules_defaults --- pkg/middlewares/aws_security_group_defaults.go | 4 ++-- pkg/middlewares/aws_security_group_rules_defaults.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/middlewares/aws_security_group_defaults.go b/pkg/middlewares/aws_security_group_defaults.go index 9923d876..4507ec15 100644 --- a/pkg/middlewares/aws_security_group_defaults.go +++ b/pkg/middlewares/aws_security_group_defaults.go @@ -9,7 +9,7 @@ import ( const defaultAwsSecurityGroupName = "default" -// When scanning a brand new AWS account, some users may see irrelevant results about default AWS role policies. +// When scanning a brand new AWS account, some users may see irrelevant results about default AWS security group. // We ignore these resources by default when strict mode is disabled. type AwsSecurityGroupDefaults struct{} @@ -21,7 +21,7 @@ func (m AwsSecurityGroupDefaults) Execute(remoteResources, resourcesFromState *[ newRemoteResources := make([]resource.Resource, 0) for _, remoteResource := range *remoteResources { - // Ignore all resources other than iam role + // Ignore all resources other than security group if remoteResource.TerraformType() != aws.AwsSecurityGroupResourceType { newRemoteResources = append(newRemoteResources, remoteResource) continue diff --git a/pkg/middlewares/aws_security_group_rules_defaults.go b/pkg/middlewares/aws_security_group_rules_defaults.go index da05d2ed..62a989b7 100644 --- a/pkg/middlewares/aws_security_group_rules_defaults.go +++ b/pkg/middlewares/aws_security_group_rules_defaults.go @@ -7,7 +7,7 @@ import ( "github.com/cloudskiff/driftctl/pkg/resource/aws" ) -// When scanning a brand new AWS account, some users may see irrelevant results about default AWS role policies. +// When scanning a brand new AWS account, some users may see irrelevant results about default AWS security group rules. // We ignore these resources by default when strict mode is disabled. type AwsSecurityGroupRuleDefaults struct{}