Skip to content

Commit 1b7d4c3

Browse files
committed
Uses attr constant
1 parent 2b002dd commit 1b7d4c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/service/iam/role.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,9 +1098,9 @@ func (l *roleListResource) List(ctx context.Context, request list.ListRequest, s
10981098
// Exclude Service-Linked Roles
10991099
if strings.HasPrefix(aws.ToString(output.Path), "/aws-service-role/") {
11001100
tflog.Debug(ctx, "Skipping resource", map[string]any{
1101-
"skip_reason": "Service-Linked Role",
1102-
"role_name": aws.ToString(output.RoleName),
1103-
"path": aws.ToString(output.Path),
1101+
"skip_reason": "Service-Linked Role",
1102+
"role_name": aws.ToString(output.RoleName),
1103+
names.AttrPath: aws.ToString(output.Path),
11041104
})
11051105
continue
11061106
}

0 commit comments

Comments
 (0)