diff options
Diffstat (limited to 'modules/zfssnap/zfssnap.py')
-rw-r--r-- | modules/zfssnap/zfssnap.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
124 | periods[period].append(snap) | 124 | periods[period].append(snap) |
125 | 125 | ||
126 | to_keep = desired_count | 126 | to_keep = desired_count |
127 | ordered_periods = reversed(periods.items()) if keep_newest else periods.items() | 127 | ordered_periods = periods.items() if keep_newest else reversed(periods.items()) |
128 | for period, period_snaps in ordered_periods: | 128 | for period, period_snaps in ordered_periods: |
129 | if to_keep == 0: | 129 | if to_keep == 0: |
130 | break | 130 | break |