From 92e72929e65f00de10d8d8fa006c30184a52bcf1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 19 Feb 2022 17:57:43 +0100 Subject: zfssnap: ... --- modules/zfssnap/zfssnap.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/zfssnap') 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): break for snap in period_snaps: - if snap['name'] not in keep: - keep_because(base, snap['name'], rule, period=period) - to_keep -= 1 - break + keep_because(base, snap['name'], rule, period=period) + to_keep -= 1 + break if to_keep > 0: logger.debug(f'Missing {to_keep} to fulfill {rule}={desired_count} for ‘{base}’') -- cgit v1.2.3