location.exclude_patterns': None is not of type 'array'
It looks like something has changed in recent borgmatic versions. If I reinstall borgmatic after a dist-upgrade I now get:
/etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found
summary:
/etc/borgmatic/config.yaml: Error parsing configuration file
An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml:
At 'location.exclude_patterns': None is not of type 'array'
At 'location.exclude_from': None is not of type 'array'
I did a quick test and setting both parameters to an empty array fixes the issue. I'll try to send a fix PR later.
Thanks, that's great!
Is this still an issue? Sounds a bit like #88.
I also checked our template and it shouldn't add an empty exclude_from if nothing is specified. So not sure how this would end up emtpy.
@m3nu The problem is exactly the fact that no empty array [] is configured when nothing is defined. I've been testing a few things, but forgot about this. I'll open a PR with a proposal for a fix.