Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OmegaConf.to_container() fails if node has string interpolation and the container is readonly #275

Closed
omry opened this issue Jun 20, 2020 · 1 comment

Comments

@omry
Copy link
Owner

omry commented Jun 20, 2020

This fails:

    cfg = OmegaConf.create({"a": 10, "b": {"c": "hello_${a}"}})
    OmegaConf.set_readonly(cfg, True)
    assert OmegaConf.to_container(cfg, resolve=True) == {
        "a": 10,
        "b": {"c": "hello_10"},
    }
@omry omry added this to the OmegaConf 2.0 milestone Jun 28, 2020
@omry
Copy link
Owner Author

omry commented Jun 28, 2020

Already fixed.

@omry omry closed this as completed Jun 28, 2020
@omry omry modified the milestones: OmegaConf 2.0, 2.0.1 Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant