Skip to content

Commit

Permalink
Update PolicyAnalyzer.py
Browse files Browse the repository at this point in the history
As mentioned in bridgecrewio#166 this PR fixes the recommend_groups command.
  • Loading branch information
lachlanjholmes authored Mar 13, 2023
1 parent 79706da commit 18cd88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airiam/find_unused/PolicyAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def policy_is_write_access(policy_document):
try:
action_regex = action_name.replace('*', '.*')
action_objs = []
for priv, priv_obj in action_map.get(action_service, {}).get('privileges', []).items():
for priv, priv_obj in action_map.get(action_service, {}).get('privileges', {}).items():
if re.match(action_regex, priv):
action_objs.append(priv_obj)
except StopIteration:
Expand Down

0 comments on commit 18cd88e

Please sign in to comment.