Add environment variable to override cloud_allowunverified_expansions#978
Conversation
This adds the environment variable PAPI_ALLOW_UNVERIFIED_EXPANSIONS. It allows overriding the option set in the config.yml.
|
Nice idea, tho I personally feel like supporting all these specific options for what is basically true/false is not needed. |
That would also be ok with me, I could make the change to that if requested |
|
There is also this shortcut https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html#getBoolean-java.lang.String- |
That method is just |
Pull Request
Type
Description
This pull request adds the environment variable PAPI_ALLOW_UNVERIFIED_EXPANSIONS.
It allows overriding the option set in the config.yml.
Accepted values are (case-insensitive)true,yesand1to allow expansions orfalse,noand0to forbid them.If the environment variable is not set or the value is not valid, the value specified in the config.yml will be used.
If the value is set to
trueunverified expansions will be allowed (case-insensitive), if it is set to any other value, unverified expansions will be forbidden.