I’m trying to achieve the following:
configsdata_creation.yml:
param1: 1
param2: 2
data_creation:
data_creation_config_path: &data_creation_config_path configsdata_creation.yml
data_creation_config: !include *data_creation_config_path
To this:
data_creation:
data_creation_config_path: configsdata_creation.yml
data_creation_config:
param1: 1
param2: 2
To handle !include
I implemented a custom Loader and it works fine when the config yaml
doesn’t have any anchors.
when i do add anchors, as in the example above, i get the following error: expected <block end>, but found '<alias>'
I tried reading the yaml
file with two reads – one handling !include
tag and then handle anchors, but it doesnt seem to be straightforward as well.