aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscator
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-18 23:38:30 +0000
committerAlex Schofield <git@ajschof.me>2025-02-18 23:38:30 +0000
commitb25f05df2f269258cd685c9b41502f1cc40cc4b5 (patch)
tree8368a5f0e4618067e66f9e70739f5112358e9d5e /obfuscator
parentf24955044c4c05e37aba4efb505ec63b44113912 (diff)
downloadgdpr-obfuscator-b25f05df2f269258cd685c9b41502f1cc40cc4b5.tar.gz
gdpr-obfuscator-b25f05df2f269258cd685c9b41502f1cc40cc4b5.zip
require LOCALSTACK environment variable instead of DEBUG for changing boto3 endpoint
Diffstat (limited to 'obfuscator')
-rw-r--r--obfuscator/csv_reader.py4
1 files 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(
git.ajschof.me — hosted by ajschofield — powered by cgit