fix(store): default store_path when config omits it (issue #53)
Release / release (push) Successful in 59s

Fresh installs shipped a config template with no store_path key while
collector.py demanded one via get_store_path() — every first collect
crashed with KeyError 'store_path'. Resolve to the packaged default
(/var/lib/fenris/observations.db) when absent, document the key in the
template, and cover the fresh-install path with regression tests.
Bump to 0.3.2.
This commit is contained in:
xavierk
2026-09-10 09:45:02 +05:30
parent bcbc97a947
commit 512df2ae83
4 changed files with 74 additions and 3 deletions
+5
View File
@@ -8,4 +8,9 @@
#
# device = /dev/disk/by-id/nvme-Samsung_SSD_980_PRO_500GB_S5PANS0T123456
#
# The observation store path is optional and defaults to
# /var/lib/fenris/observations.db when unset:
#
# store_path = /var/lib/fenris/observations.db
#
# See https://git.bongbetic.com/xavierk/Fenris for documentation.