validate-borgmatic-config -c ~/.config/borgmatic/config.yaml crashes, if hooks is set but empty #604
Labels
No Label
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 New Issue
Block a user
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!