From 13fbee858aa75eadcf04e7d35af159a6512ee91e Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 30 Sep 2025 09:51:47 -0700 Subject: [PATCH] Fix a traceback (TypeError) regression in the "spot" check when the "local_path" option isn't set. --- NEWS | 2 ++ borgmatic/actions/config/bootstrap.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 02b2c69f..0e4c190f 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ * #1151: Fix snapshotting in the ZFS, Btrfs, and LVM hooks to play nicely with the Borg 1.4+ "slashdot" hack within source directory paths. * #1152: Fix a regression in the Loki monitoring hook in which log messages weren't sending. + * Fix a traceback (TypeError) regression in the "spot" check when the "local_path" option isn't + set. 2.0.8 * #1114: Document systemd configuration changes for the ZFS filesystem hook. diff --git a/borgmatic/actions/config/bootstrap.py b/borgmatic/actions/config/bootstrap.py index e38e6e72..c2e013e9 100644 --- a/borgmatic/actions/config/bootstrap.py +++ b/borgmatic/actions/config/bootstrap.py @@ -66,7 +66,7 @@ def load_config_paths_from_archive( config, local_borg_version, global_arguments, - local_path=config.get('local_path'), + local_path=config.get('local_path', 'borg'), remote_path=config.get('remote_path'), extract_to_stdout=True, )