Skip to content

Commit

Permalink
Merge pull request #665 from bridgecrewio/bugfix/use_group_path
Browse files Browse the repository at this point in the history
IAM report - when calculating group ARN, take path into account
  • Loading branch information
0xdabbad00 committed Feb 24, 2020
2 parents f72d80b + 9f4bea4 commit d6b6998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/iam_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def __init__(self, auth, auth_graph):
auth_graph[policy_node.key()] = policy_node

for group_name in auth.get("GroupList", []):
group_key = self.key()[0:26] + "group/" + group_name
group_key = self.key()[0:26] + "group" + auth['Path'] + group_name
group_node = auth_graph[group_key]
group_node.add_parent(self)
self.add_child(group_node)
Expand Down

0 comments on commit d6b6998

Please sign in to comment.