From b25f05df2f269258cd685c9b41502f1cc40cc4b5 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Tue, 18 Feb 2025 23:38:30 +0000 Subject: require LOCALSTACK environment variable instead of DEBUG for changing boto3 endpoint --- obfuscator/csv_reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obfuscator/csv_reader.py b/obfuscator/csv_reader.py index 8f4ebea..cd0da0a 100644 --- a/obfuscator/csv_reader.py +++ b/obfuscator/csv_reader.py @@ -53,8 +53,8 @@ class CSVReader: bucket, key = get_s3_path(path) logger.debug(f"Reading S3 CSV from: {bucket}/{key}") - # If DEBUG=TRUE, use the localstack endpoint for testing - if os.getenv("DEBUG", "FALSE").upper() == "TRUE": + # If LOCALSTACK=TRUE, use the localstack endpoint for testing + if os.getenv("LOCALSTACK", "FALSE").upper() == "TRUE": localstack_endpoint = "http://localhost.localstack.cloud:4566" logger.debug("Using LocalStack endpoint for S3") client = boto3.client( -- cgit v1.2.3