summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-19 17:40:08 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-19 17:40:08 +0100
commitb020373b57d3a1459718eb4c924cb6d870c3621b (patch)
treec7590ce3e992ea049bddeae42b48a78b062a251b /modules
parent9a77d1dfd0cf1f9fa0ee401598bae2b36de1196a (diff)
downloadnixos-b020373b57d3a1459718eb4c924cb6d870c3621b.tar
nixos-b020373b57d3a1459718eb4c924cb6d870c3621b.tar.gz
nixos-b020373b57d3a1459718eb4c924cb6d870c3621b.tar.bz2
nixos-b020373b57d3a1459718eb4c924cb6d870c3621b.tar.xz
nixos-b020373b57d3a1459718eb4c924cb6d870c3621b.zip
zfssnap: ...
Diffstat (limited to 'modules')
-rw-r--r--modules/zfssnap/zfssnap.py2
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