diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/zfssnap/zfssnap.py | 2 |
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} |