Open fdammeke opened 10 months ago
Unfortunately I actually bumped into this a long time ago and the error is coming from the underlying hiera library.
https://github.com/lyraproj/hiera/blob/master/provider/yamldata.go
I am not sure why the system panics and that library hasn't been updated in years....
From what I can see patching it will require forking that library. I may look at it sometime cause it annoys me too but honestly no promises.
You can work around it by putting just a random key value in the file. Doesn't even have to be something you use.
hiera: true
Or other to prevent the panic
Hi,
first off: thanks for this awesome implementation!
Issue: Sometimes I declare 'empty' .yaml files in my gitops project as a placeholder, the provider panics when reading those. example yaml file content:
Environment:
Solution: Would it be possible not to crash on an empty yaml file, even though it contains valid syntax?
Reproducable: