From f70417cae35da8f784c1def45e9d21b255c61d6f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 1 Nov 2022 23:03:38 +0100 Subject: ... --- modules/zfssnap/zfssnap/zfssnap/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): periods[period].append(snap) to_exec = desired_count - ordered_periods = periods.items() + ordered_periods = periods.items() if exec_newest else reversed(periods.items()) for period, period_snaps in ordered_periods: if to_exec == 0: break -- cgit v1.2.3