https://kedro.org/ logo
#questions
Title
# questions
o

Olivier Ho

07/05/2023, 2:49 PM
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

Merel

07/05/2023, 2:53 PM
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

Olivier Ho

07/05/2023, 2:59 PM
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
6 Views