summaryrefslogtreecommitdiff
path: root/modules/zfssnap
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-19 15:55:39 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-19 15:55:39 +0100
commit0dd7af80bbcae214daca69d89b5ec046f0fefc07 (patch)
treed606f960f97e73059d007ed5590e9088d617dc56 /modules/zfssnap
parent9c37ce946826258711e15cd55ee221fa8fe02256 (diff)
downloadnixos-0dd7af80bbcae214daca69d89b5ec046f0fefc07.tar
nixos-0dd7af80bbcae214daca69d89b5ec046f0fefc07.tar.gz
nixos-0dd7af80bbcae214daca69d89b5ec046f0fefc07.tar.bz2
nixos-0dd7af80bbcae214daca69d89b5ec046f0fefc07.tar.xz
nixos-0dd7af80bbcae214daca69d89b5ec046f0fefc07.zip
zfssnap: ...
Diffstat (limited to 'modules/zfssnap')
-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: