artefactual-sdps / enduro

A tool to support ingest and automation in digital preservation workflows
https://enduro.readthedocs.io/
Apache License 2.0
4 stars 3 forks source link

Problem: Current storage configuration allows for mutually exclusive options to be chosen #853

Closed Diogenesoftoronto closed 4 months ago

Diogenesoftoronto commented 5 months ago

Is your feature request related to a problem? Please describe.

Setting multiple configuration options for the storage service results in no errors. Yet these are mutually exclusive options. If the user sets up two or more only one of them will work whatever is the first in the switch statement.

Describe the solution you'd like

Return an error or crash the program if multiple storage configuration options have been setup. This forces the user to set the expected configuration.

Describe alternatives you've considered

Set up a priority of configuration options. For example if the options for S3 have been setup but also URLs then URLs will be used instead.

Additional context

Add any other context or screenshots about the feature request here.