nasa / eo-metadata-tools

eo-metadata-tools is a set of repositories for working with Earth Observation metadata. At its core are common libraries and demonstration scripts for accessing the Common Metadata Repository, to be accompanied by more specific modules and scripts to do dataset-specific queries, metadata validation, etc...
Apache License 2.0
25 stars 11 forks source link

CMR PROD parameters do not work #45

Open nasajay opened 2 years ago

nasajay commented 2 years ago

in the common function:

if env in ['', 'ops', 'prod', 'production']: env = ""

which disables choosing CMR PROD explicitly and also creates error: nodename nor servname provided, or not known.

The default is actually already PROD, and {'env': 'uat'} works for UAT.

jceaser commented 2 years ago

this is a copy-paste error of mine, I have a better, simpler way of handling this code now.