From de7738b98cc94abb926cbcaa808317fca6b2fd4d Mon Sep 17 00:00:00 2001 From: Tom Close Date: Thu, 2 May 2024 15:36:21 +1000 Subject: [PATCH] updated store_credentials attributes --- xnat_ingest/cli/upload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xnat_ingest/cli/upload.py b/xnat_ingest/cli/upload.py index 8f470a0..9290bc9 100644 --- a/xnat_ingest/cli/upload.py +++ b/xnat_ingest/cli/upload.py @@ -211,8 +211,8 @@ def xnat_session_exists(project_id, subject_id, visit_id): # List sessions stored in s3 bucket s3 = boto3.resource( "s3", - aws_access_key_id=store_credentials[0], - aws_secret_access_key=store_credentials[1], + aws_access_key_id=store_credentials.access_key, + aws_secret_access_key=store_credentials.access_secret, ) bucket_name, prefix = staged[5:].split("/", 1) bucket = s3.Bucket(bucket_name)