From 0dd7af80bbcae214daca69d89b5ec046f0fefc07 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 19 Feb 2022 15:55:39 +0100 Subject: zfssnap: ... --- modules/zfssnap/zfssnap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/zfssnap') diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py index a05440a7..76a7727c 100644 --- a/modules/zfssnap/zfssnap.py +++ b/modules/zfssnap/zfssnap.py @@ -87,10 +87,10 @@ def prune(config, dry_run): for base, snaps in items.items(): time_ref = max(snaps, key=lambda snap: snap['creation'], default=None) if not time_ref: - logger.warn('Nothing to keep for ‘{base}’') + logger.warn(f'Nothing to keep for ‘{base}’') continue - logger.info('Using ‘{time_ref["name"]}’ as time reference for ‘{base}’') + logger.info(f'Using ‘{time_ref["name"]}’ as time reference for ‘{base}’') within_cutoff = time_ref['creation'] - within for snap in snaps: -- cgit v1.2.3