summaryrefslogtreecommitdiff
path: root/modules/zfssnap/zfssnap.py
diff options
context:
space:
mode:
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}’')