tanbro / pyyaml-include

yaml include other yaml
https://pypi.org/project/pyyaml-include/
GNU General Public License v3.0
78 stars 20 forks source link

fix issue if glob_params is not int #48

Closed maurerle closed 1 month ago

maurerle commented 2 months ago

Hi, I want to parse the yaml files from the AMIRIS examples repository: https://gitlab.com/dlr-ve/esy/amiris/examples/-/blob/v2.1.0/Germany2019/scenario.yaml?ref_type=tags#L503

We have an include like this in there: Contracts: !include ["contracts/*.yaml", "Contracts"]

where the last string is not of any further meaning - I can not change these files either.

Currently, this gives a ValueError as it is tried to be read as an integer. I can confirm that this was working in the 1.x version?

So it would be very cool to have this workaround included! :)

tanbro commented 1 month ago

Thanks for the PR!

Codes of the PR picked in commit da96563