summaryrefslogtreecommitdiff
path: root/modules/zfssnap/zfssnap.py
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-19 17:57:43 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-19 17:57:43 +0100
commit92e72929e65f00de10d8d8fa006c30184a52bcf1 (patch)
tree0faa92bbd734962539d71210a1de21f03da155f9 /modules/zfssnap/zfssnap.py
parent90bac3b307e6a4b8a6129c6580e1ea4a01853015 (diff)
downloadnixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar
nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar.gz
nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar.bz2
nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar.xz
nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.zip
zfssnap: ...
Diffstat (limited to 'modules/zfssnap/zfssnap.py')
-rw-r--r--modules/zfssnap/zfssnap.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py
index 2be782f7..731cd29a 100644
--- a/modules/zfssnap/zfssnap.py
+++ b/modules/zfssnap/zfssnap.py
@@ -130,10 +130,9 @@ def prune(config, dry_run, keep_newest):
130 break 130 break
131 131
132 for snap in period_snaps: 132 for snap in period_snaps:
133 if snap['name'] not in keep: 133 keep_because(base, snap['name'], rule, period=period)
134 keep_because(base, snap['name'], rule, period=period) 134 to_keep -= 1
135 to_keep -= 1 135 break
136 break
137 136
138 if to_keep > 0: 137 if to_keep > 0:
139 logger.debug(f'Missing {to_keep} to fulfill {rule}={desired_count} for ‘{base}’') 138 logger.debug(f'Missing {to_keep} to fulfill {rule}={desired_count} for ‘{base}’')