Skip to content

Commit

Permalink
Reenable account blacklist in scan script
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-jcarlson committed Oct 2, 2024
1 parent 100e80f commit e94a8b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambda_code/scan/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ def lambda_handler(event, context): # pylint:disable=unused-argument
account_id = event["Id"]
account_name = event["Name"]

# if account_id in bc_acct_blacklist:
# print(f"Account ID {account_id} found in blacklist, skipping...")
# return
if account_id in bc_acct_blacklist:
print(f"Account ID {account_id} found in blacklist, skipping...")
return

boto3_session = assume_role(account_id)
if not boto3_session:
Expand Down

0 comments on commit e94a8b8

Please sign in to comment.