Browse Source

Fix for a runtime directory error when the "create" action is used with the "--log-json" flag (#1150).

Dan Helfman 3 weeks ago
parent
commit
b80d126424
2 changed files with 7 additions and 1 deletions
  1. 2 0
      NEWS
  2. 5 1
      borgmatic/borg/create.py

+ 2 - 0
NEWS

@@ -1,6 +1,8 @@
 2.0.10.dev0
 2.0.10.dev0
  * #942: Factor reference material out of the documentation how-to guides. This means there's now a
  * #942: Factor reference material out of the documentation how-to guides. This means there's now a
    whole reference section in the docs! Check it out: https://torsion.org/borgmatic/
    whole reference section in the docs! Check it out: https://torsion.org/borgmatic/
+ * #1150: Fix for a runtime directory error when the "create" action is used with the "--log-json"
+   flag.
  * #1161: Fix a traceback (TypeError) in the "check" action with Python 3.14.
  * #1161: Fix a traceback (TypeError) in the "check" action with Python 3.14.
  * Add documentation search.
  * Add documentation search.
  * Change the URL of the local documentation development server to be more like the production URL.
  * Change the URL of the local documentation development server to be more like the production URL.

+ 5 - 1
borgmatic/borg/create.py

@@ -72,7 +72,11 @@ def validate_planned_backup_paths(
     paths_output = execute_command_and_capture_output(
     paths_output = execute_command_and_capture_output(
         (
         (
             *flags.omit_flag_and_value(
             *flags.omit_flag_and_value(
-                flags.omit_flag(create_command, '--exclude-nodump'), '--filter'
+                flags.omit_flag(
+                    flags.omit_flag(create_command, '--exclude-nodump'),
+                    '--log-json',
+                ),
+                '--filter',
             ),
             ),
             '--dry-run',
             '--dry-run',
             '--list',
             '--list',