summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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 ef125703..c86cd701 100644
--- a/modules/zfssnap/zfssnap.py
+++ b/modules/zfssnap/zfssnap.py
@@ -74,7 +74,7 @@ def prune(config, dry_run, keep_newest):
74 keep = set() 74 keep = set()
75 kept_count = defaultdict(lambda: defaultdict(lambda: 0)) 75 kept_count = defaultdict(lambda: defaultdict(lambda: 0))
76 KeptBecause = namedtuple('KeptBecause', ['rule', 'ix', 'base', 'period']) 76 KeptBecause = namedtuple('KeptBecause', ['rule', 'ix', 'base', 'period'])
77 kept_because = OrderedDict(deque) 77 kept_because = OrderedDict()
78 def keep_because(base, snap, rule, period=None): 78 def keep_because(base, snap, rule, period=None):
79 nonlocal KeptBecause, keep, kept_count, kept_because 79 nonlocal KeptBecause, keep, kept_count, kept_because
80 kept_count[rule][base] += 1 80 kept_count[rule][base] += 1