summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-19 18:42:21 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-19 18:42:21 +0100
commit0a33f63fb70e884731b78b6a256ae03c775eba98 (patch)
tree0bce1b747139d0f8ce9f8af6d4005af3599d1a02
parent3a220318725ae368fcb7ef4e6c307719f47167af (diff)
downloadnixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar
nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar.gz
nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar.bz2
nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar.xz
nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.zip
zfssnap: ...
-rw-r--r--modules/zfssnap/zfssnap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py
index c86cd701..32bc4464 100644
--- a/modules/zfssnap/zfssnap.py
+++ b/modules/zfssnap/zfssnap.py
@@ -139,7 +139,7 @@ def prune(config, dry_run, keep_newest):
139 if to_keep > 0: 139 if to_keep > 0:
140 logger.debug(f'Missing {to_keep} to fulfill {rule}={desired_count} for ‘{base}’') 140 logger.debug(f'Missing {to_keep} to fulfill {rule}={desired_count} for ‘{base}’')
141 141
142 for snap, reasons in kept_because: 142 for snap, reasons in kept_because.items():
143 reasons_str = ', '.join(map(str, reasons)) 143 reasons_str = ', '.join(map(str, reasons))
144 logger.info(f'Keeping ‘{snap}’ because: {reasons_str}') 144 logger.info(f'Keeping ‘{snap}’ because: {reasons_str}')
145 all_snaps = {snap.name for _, snaps in items.items() for snap in snaps} 145 all_snaps = {snap.name for _, snaps in items.items() for snap in snaps}