Skip to content

Commit 7893a42

Browse files
authored
fetch the resource only
1 parent 526da1a commit 7893a42

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rules/aws_iam_policy_attachment_exclusive_attachment.go

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

4545
// Check that the resource is not used
4646
func (r *AwsIAMPolicyAttachmentExclusiveAttachmentRule) Check(runner tflint.Runner) error {
47-
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{
48-
Attributes: []hclext.AttributeSchema{{Name: r.attributeName}},
49-
}, nil)
47+
resources, err := runner.GetResourceContent(r.resourceType, &hclext.BodySchema{}, nil)
5048
if err != nil {
5149
return err
5250
}

0 commit comments

Comments
 (0)