Skip to content

Commit

Permalink
When calculating group ARN, take path into account
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrodkor committed Feb 24, 2020
1 parent c5f785b commit 2b58451
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 2b58451

Please sign in to comment.