diff --git a/scripts/policy-generation.py b/scripts/policy-generation.py index 110614d..2737323 100755 --- a/scripts/policy-generation.py +++ b/scripts/policy-generation.py @@ -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)