mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-31 13:43:02 +02:00
For the "repo-create" action, don't pass "--log-json" to Borg, as its output isn't captured and parsed (#485).
This commit is contained in:
@@ -81,7 +81,6 @@ def create_repository(
|
||||
if feature.available(feature.Feature.REPO_CREATE, local_borg_version)
|
||||
else ('init',)
|
||||
)
|
||||
+ ('--log-json',)
|
||||
+ (('--encryption', encryption_mode) if encryption_mode else ())
|
||||
+ (('--other-repo', source_repository) if source_repository else ())
|
||||
+ (('--copy-crypt-key',) if copy_crypt_key else ())
|
||||
|
||||
@@ -9,7 +9,7 @@ from borgmatic.borg import repo_create as module
|
||||
from ..test_verbosity import insert_logging_mock
|
||||
|
||||
REPO_INFO_SOME_UNKNOWN_EXIT_CODE = -999
|
||||
REPO_CREATE_COMMAND = ('borg', 'repo-create', '--log-json', '--encryption', 'repokey')
|
||||
REPO_CREATE_COMMAND = ('borg', 'repo-create', '--encryption', 'repokey')
|
||||
|
||||
|
||||
def insert_repo_info_command_found_mock():
|
||||
|
||||
Reference in New Issue
Block a user