summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-01 23:03:38 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-01 23:03:38 +0100
commitf70417cae35da8f784c1def45e9d21b255c61d6f (patch)
tree046a7370e28b211ad39b626c3eedc7804486d46f
parent126a6e36023dd91d01003db5f1eb30c7fe1b954e (diff)
downloadnixos-f70417cae35da8f784c1def45e9d21b255c61d6f.tar
nixos-f70417cae35da8f784c1def45e9d21b255c61d6f.tar.gz
nixos-f70417cae35da8f784c1def45e9d21b255c61d6f.tar.bz2
nixos-f70417cae35da8f784c1def45e9d21b255c61d6f.tar.xz
nixos-f70417cae35da8f784c1def45e9d21b255c61d6f.zip
...
-rw-r--r--modules/zfssnap/zfssnap/zfssnap/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/zfssnap/zfssnap/zfssnap/__main__.py b/modules/zfssnap/zfssnap/zfssnap/__main__.py
index ffa6dfb9..274317e2 100644
--- a/modules/zfssnap/zfssnap/zfssnap/__main__.py
+++ b/modules/zfssnap/zfssnap/zfssnap/__main__.py
@@ -142,7 +142,7 @@ def prune(config, dry_run, keep_newest, do_exec, exec_newest):
142 periods[period].append(snap) 142 periods[period].append(snap)
143 143
144 to_exec = desired_count 144 to_exec = desired_count
145 ordered_periods = periods.items() 145 ordered_periods = periods.items() if exec_newest else reversed(periods.items())
146 for period, period_snaps in ordered_periods: 146 for period, period_snaps in ordered_periods:
147 if to_exec == 0: 147 if to_exec == 0:
148 break 148 break