mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
more debug
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
@@ -34,9 +35,10 @@ def s3upload(service_id, filedata):
|
|||||||
service_id, upload_id
|
service_id, upload_id
|
||||||
)
|
)
|
||||||
if bucket_name == "":
|
if bucket_name == "":
|
||||||
expected_bucket_name = current_app.config['CSV_UPLOAD_BUCKET']['bucket']
|
exp_bucket = current_app.config['CSV_UPLOAD_BUCKET']['bucket']
|
||||||
expected_region = current_app.config['CSV_UPLOAD_BUCKET']['region']
|
exp_region = current_app.config['CSV_UPLOAD_BUCKET']['region']
|
||||||
raise Exception(f"NO BUCKET NAME SHOULD BE: {expected_bucket_name} WITH REGION {expected_region}")
|
tier = os.getenv("NOTIFY_ENVIRONMENT")
|
||||||
|
raise Exception(f"NO BUCKET NAME SHOULD BE: {exp_bucket} WITH REGION {exp_region} TIER {tier}")
|
||||||
|
|
||||||
utils_s3upload(
|
utils_s3upload(
|
||||||
filedata=filedata["data"],
|
filedata=filedata["data"],
|
||||||
|
|||||||
Reference in New Issue
Block a user