Skip to content

Commit

Permalink
Few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Valswyn-NHS committed Oct 30, 2024
1 parent 6c30fc1 commit 77bf2cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filenameprocessor/src/decrpyt_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def decrypt_key(os_env_key_name):

print("starting decryption")
# Get the encrypted environment variable
encrypted_value = os.getenv(os_env_key_name)

Expand Down
2 changes: 1 addition & 1 deletion filenameprocessor/src/make_and_upload_ack_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def upload_ack_file(file_key: str, ack_data: dict) -> None:
csv_buffer.seek(0)
csv_bytes = BytesIO(csv_buffer.getvalue().encode("utf-8"))
ack_bucket = decrypt_key("ACK_BUCKET_NAME")
ack_bucket_name = os.getenv(ack_bucket, f"immunisation-batch-{get_environment()}-data-destinations")
ack_bucket_name = ack_bucket
s3_client.upload_fileobj(csv_bytes, ack_bucket_name, ack_filename)


Expand Down

0 comments on commit 77bf2cb

Please sign in to comment.