summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/zfssnap/zfssnap.py4
1 files changed, 2 insertions, 2 deletions
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):
87 for base, snaps in items.items(): 87 for base, snaps in items.items():
88 time_ref = max(snaps, key=lambda snap: snap['creation'], default=None) 88 time_ref = max(snaps, key=lambda snap: snap['creation'], default=None)
89 if not time_ref: 89 if not time_ref:
90 logger.warn('Nothing to keep for ‘{base}’') 90 logger.warn(f'Nothing to keep for ‘{base}’')
91 continue 91 continue
92 92
93 logger.info('Using ‘{time_ref["name"]}’ as time reference for ‘{base}’') 93 logger.info(f'Using ‘{time_ref["name"]}’ as time reference for ‘{base}’')
94 within_cutoff = time_ref['creation'] - within 94 within_cutoff = time_ref['creation'] - within
95 95
96 for snap in snaps: 96 for snap in snaps: