validate-borgmatic-config -c ~/.config/borgmatic/config.yaml crashes, if hooks is set but empty
#604
Closed
opened 5 months ago by jonasstein
·
3 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
What I'm trying to do and why
validate-borgmatic-config -c ~/.config/borgmatic/config.yaml
where config.yaml has hooks: as last line.
Environment
app-backup/borgmatic-1.7.4
borgmatic installation method: Gentoo package
Thanks for reporting this! I've reproduced the same error locally by ending a configuration file with just
hooks:
. This should hopefully be an easy fix.This is fixed in master and will be part of the next release. Note that
hooks:
with no options beneath it is still invalid, but will cause a graceful error now rather than a traceback.Thanks again for reporting it!
Just released in borgmatic 1.7.5!