hi! is there a way to force the use of the omegaco...
# questions
o
hi! is there a way to force the use of the omegaconf oc.env resolver in the catalog (even though it's not recommended) ?
m
You can do this currently by registering it similar to:
Copy code
# settings.py

if not OmegaConf.has_resolver("dummy"):
    OmegaConf.register_new_resolver("dummy", lambda x: x)

CONFIG_LOADER_CLASS = OmegaConfigLoader
We are working a slightly better way of doing this and explaining it better as well: https://github.com/kedro-org/kedro/issues/2622
o
thanks!
@Merel ok, I tried with:
Copy code
if not OmegaConf.has_resolver("oc.env"):
    OmegaConf.register_new_resolver("oc.env", oc.env)
CONFIG_LOADER_CLASS = OmegaConfigLoader
but i still have the same issue
omegaconf.errors.UnsupportedInterpolationType: Unsupported interpolation type oc.env
, it seems there is something that is removing the resolver
nvm, I think I got it
👍 1