Skip to content

Commit 126bf99

Browse files
committed
get the resource only
1 parent f43c87f commit 126bf99

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rules/aws_security_group_rule_deprecated.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ func (r *AwsSecurityGroupRuleDeprecatedRule) Link() string {
4444

4545
// Check that aws_security_group_rule resource is not used
4646
func (r *AwsSecurityGroupRuleDeprecatedRule) Check(runner tflint.Runner) error {
47-
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
48-
Attributes: []hclext.AttributeSchema{
49-
{Name: r.attributeName},
50-
},
51-
}, nil)
47+
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{}, nil)
5248
if err != nil {
5349
return err
5450
}

0 commit comments

Comments
 (0)