summaryrefslogtreecommitdiff
path: root/modules/zfssnap
diff options
context:
space:
mode:
Diffstat (limited to 'modules/zfssnap')
-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