From 61fb2758965ecec41df4c1b3b7ae5b5588476ef9 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 30 Aug 2022 20:29:26 -0700 Subject: [PATCH] Fix duplicate-appearing log entries for "list" action. --- borgmatic/commands/borgmatic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/borgmatic/commands/borgmatic.py b/borgmatic/commands/borgmatic.py index 710ccad..c485adc 100644 --- a/borgmatic/commands/borgmatic.py +++ b/borgmatic/commands/borgmatic.py @@ -669,8 +669,8 @@ def run_actions( if not list_arguments.json: # pragma: nocover if list_arguments.find_paths: logger.warning('{}: Searching archives'.format(repository)) - else: - logger.warning('{}: Listing archive'.format(repository)) + elif not list_arguments.archive: + logger.warning('{}: Listing archives'.format(repository)) list_arguments.archive = borg_rlist.resolve_archive_name( repository, list_arguments.archive,