Closed RonnyPfannschmidt closed 2 years ago
Can you provide some pseudocode for merge_from_environments
?
def merge_from_environments(configs, environments):
merged = Config()
for environment in environments:
for config in configs:
merged += Config(config.get(environment, {})
return merged
Great to chat yesterday, as discussed, if you can implement this one in your code base (without stuff that can be added when #9 is done!) then we can see about lifting it back into configurator as a pattern once its stable.
Closing this for now, but please comment so we can re-open if you hit problems doing this, or when it's time to bring it upstream.
i have a setup where we are using dynaconf style environment
which means that instead of
we have something like
then the full config ought to be created via something like