diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 17:57:43 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 17:57:43 +0100 |
commit | 92e72929e65f00de10d8d8fa006c30184a52bcf1 (patch) | |
tree | 0faa92bbd734962539d71210a1de21f03da155f9 | |
parent | 90bac3b307e6a4b8a6129c6580e1ea4a01853015 (diff) | |
download | nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar.gz nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar.bz2 nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.tar.xz nixos-92e72929e65f00de10d8d8fa006c30184a52bcf1.zip |
zfssnap: ...
-rw-r--r-- | modules/zfssnap/zfssnap.py | 7 |
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}’') |