validate-borgmatic-config -c ~/.config/borgmatic/config.yaml crashes, if hooks is set but empty #604
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#604
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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!