Browse Source

Fix a traceback (TypeError) regression in the "spot" check when the "local_path" option isn't set.

Dan Helfman 1 month ago
parent
commit
13fbee858a
2 changed files with 3 additions and 1 deletions
  1. 2 0
      NEWS
  2. 1 1
      borgmatic/actions/config/bootstrap.py

+ 2 - 0
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.

+ 1 - 1
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,
         )