Replies: 1 comment 7 replies
-
You can provide a default value in resolver: # corresponds to your config file
cfg1 = {
"db": {
"user": "${env:DB_USER, root}"
}
}
cfg = OmegaConf.merge(cfg1, OmegaConf.from_cli()) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to have a configuration where parameters may come from:
In that order of importance.
First I thought I'd do a defaults.yaml with values like:
But then I have a problem when merging sources how not take an env variable if not exist, doing something like this -
I may end up with unresolved interpolations.
Beta Was this translation helpful? Give feedback.
All reactions