mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
code review feedback
This commit is contained in:
@@ -65,7 +65,6 @@ def clean_cache():
|
|||||||
def get_s3_client():
|
def get_s3_client():
|
||||||
global s3_client
|
global s3_client
|
||||||
if s3_client is None:
|
if s3_client is None:
|
||||||
# print(hilite("S3 CLIENT IS NONE, CREATING IT!"))
|
|
||||||
access_key = current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"]
|
access_key = current_app.config["CSV_UPLOAD_BUCKET"]["access_key_id"]
|
||||||
secret_key = current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"]
|
secret_key = current_app.config["CSV_UPLOAD_BUCKET"]["secret_access_key"]
|
||||||
region = current_app.config["CSV_UPLOAD_BUCKET"]["region"]
|
region = current_app.config["CSV_UPLOAD_BUCKET"]["region"]
|
||||||
@@ -75,8 +74,6 @@ def get_s3_client():
|
|||||||
region_name=region,
|
region_name=region,
|
||||||
)
|
)
|
||||||
s3_client = session.client("s3")
|
s3_client = session.client("s3")
|
||||||
# else:
|
|
||||||
# print(hilite("S3 CLIENT ALREADY EXISTS, REUSING IT!"))
|
|
||||||
return s3_client
|
return s3_client
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user