diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 18:42:21 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 18:42:21 +0100 |
commit | 0a33f63fb70e884731b78b6a256ae03c775eba98 (patch) | |
tree | 0bce1b747139d0f8ce9f8af6d4005af3599d1a02 /modules | |
parent | 3a220318725ae368fcb7ef4e6c307719f47167af (diff) | |
download | nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar.gz nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar.bz2 nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.tar.xz nixos-0a33f63fb70e884731b78b6a256ae03c775eba98.zip |
zfssnap: ...
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} |