Skip to content

Commit

Permalink
fixed up upload CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Apr 8, 2024
1 parent fa4439d commit 29f04b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions real-tests/usyd_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"XNAT_INGEST_UPLOAD_HOST": "https://xnat.sydney.edu.au",
"XNAT_INGEST_UPLOAD_USER": "<role-account-user>",
"XNAT_INGEST_UPLOAD_PASS": "<role-account-pass>",
# "XNAT_INGEST_UPLOAD_ALWAYSINCLUDE": "medimage/dicom-series",
# "XNAT_INGEST_UPLOAD_STORE_CREDENTIALS": "<s3-bucket-access-key>,<s3-bucket-access-secret>",
# "XNAT_INGEST_UPLOAD_LOGFILE": "<somewhere-sensible>,INFO",
# "XNAT_INGEST_UPLOAD_DELETE": "0",
# "XNAT_INGEST_UPLOAD_TEMPDIR": "<somewhere-else-sensible>",
# "XNAT_INGEST_UPLOAD_REQUIRE_MANIFEST": "1",
# "XNAT_INGEST_UPLOAD_CLEANUP_OLDER_THAN": "30",
"XNAT_INGEST_UPLOAD_ALWAYSINCLUDE": "medimage/dicom-series",
"XNAT_INGEST_UPLOAD_STORE_CREDENTIALS": "<s3-bucket-access-key>,<s3-bucket-access-secret>",
"XNAT_INGEST_UPLOAD_LOGFILE": "<somewhere-sensible>,INFO",
"XNAT_INGEST_UPLOAD_DELETE": "0",
"XNAT_INGEST_UPLOAD_TEMPDIR": "<somewhere-else-sensible>",
"XNAT_INGEST_UPLOAD_REQUIRE_MANIFEST": "1",
"XNAT_INGEST_UPLOAD_CLEANUP_OLDER_THAN": "30",
},
catch_exceptions=False,
)
Expand Down
3 changes: 2 additions & 1 deletion xnat_ingest/cli/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
set_logger_handling,
get_checksums,
calculate_checksums,
StoreCredentials,
)


Expand Down Expand Up @@ -121,7 +122,7 @@
)
@click.option(
"--store-credentials",
type=str,
type=StoreCredentials.cli_type,
metavar="<access-key> <secret-key>",
envvar="XNAT_INGEST_UPLOAD_STORE_CREDENTIALS",
default=None,
Expand Down

0 comments on commit 29f04b0

Please sign in to comment.