Evaluating dynamic variable name
Issue #2
new
I have a template that I would like to use with a set of configuration variables the choice of which one would be determined at runtime. Given /configs
:
geosys_inference_conda_env=test_operationnalisation
geosys_postprocessing_conda_env=geo_deep_env_prod_submitit
I’m trying to get the substring {*_conda_test} to be determined from the HCRON event name. Here’s how I would use it:
conda_env = $HCRON_EVENT_NAME[-1]_conda_env
That evaluates to the variable name. I have tried all sorts of syntax to get the value of the variable, in my case test_operationnalisation
hard_coded = $geosys_inference_conda_env
works. How can I get conda_env
above to evaluate to either test_operationnalisation
or geo_deep_env_prod_submitit
?