Skip to content

Commit

Permalink
bugfix: scp_file None check, needed because read moved outside of org…
Browse files Browse the repository at this point in the history
…anizations.initalize_organization_data
  • Loading branch information
noamsdahan committed Mar 21, 2022
1 parent f41d47b commit 17c6fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion access_undenied_aws/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def analyze(
suppress_output,
cross_account_role_name,
)
organizations.initialize_organization_data(config, scp_file.read())
organizations.initialize_organization_data(config, scp_file.read() if scp_file else None)
analysis.analyze_cloudtrail_events(config, events_file)


Expand Down

0 comments on commit 17c6fe3

Please sign in to comment.