From ed3774ad14412253281b9815b3d54f5654c85db3 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Tue, 26 Nov 2019 13:04:30 +0100 Subject: [PATCH] Only rstrip log lines as to not lose indentation --- restic_volume_backup/backup_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic_volume_backup/backup_runner.py b/restic_volume_backup/backup_runner.py index 8cffc07..dfb9dae 100644 --- a/restic_volume_backup/backup_runner.py +++ b/restic_volume_backup/backup_runner.py @@ -40,7 +40,7 @@ def run(image: str = None, command: str = None, volumes: dict = None, except StopIteration: break if line: - yield line.strip() + yield line.rstrip() else: break