Skip to content

Commit

Permalink
Call lower() function instead of referencing it.
Browse files Browse the repository at this point in the history
Without the parentheses, it ends up being a reference
to the function itself. That never matches the condition,
and nothing in the exclude list is ever excluded.
  • Loading branch information
adamburns7933 committed Sep 7, 2024
1 parent 41a0e59 commit 605e760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/policy-generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main(args):
statement['Resource'] = "*"

for action_name in action_list[risk_type]['Actions']:
if action_name.lower in excluded_actions:
if action_name.lower() in excluded_actions:
continue
if type(action_name) is str:
statement['Action'].append(action_name)
Expand Down

0 comments on commit 605e760

Please sign in to comment.