pulibrary / dspace-osti

Preparing PPPL dataset metadata for ingestion by OSTI
3 stars 1 forks source link

Only require credentials needed for mode running in Poster.py #52

Closed kelynch closed 2 years ago

kelynch commented 2 years ago

Test and production ELink credentials are set as environment variables in order for Poster.py to run in test or production mode. Currently, both the test credential and the production credential variables must be set to some value (even a dummy value) in order for either mode to run, regardless of whether they are being used.

Proposal: only require that test credential variables be set when doing a test run; only require production credential variables be set when doing a production run.

astrochun commented 2 years ago

This should be straightforward with some basic if/else logic. I can lead this as well.