From b020373b57d3a1459718eb4c924cb6d870c3621b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 19 Feb 2022 17:40:08 +0100 Subject: zfssnap: ... --- modules/zfssnap/zfssnap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py index cf6ab28c..b494f9fd 100644 --- a/modules/zfssnap/zfssnap.py +++ b/modules/zfssnap/zfssnap.py @@ -124,7 +124,7 @@ def prune(config, dry_run, keep_newest): periods[period].append(snap) to_keep = desired_count - ordered_periods = reversed(periods.items()) if keep_newest else periods.items() + ordered_periods = periods.items() if keep_newest else reversed(periods.items()) for period, period_snaps in ordered_periods: if to_keep == 0: break -- cgit v1.2.3