From fff49096859d4b1dac66448eb7dcec8011d504ac Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 19 Feb 2022 22:49:34 +0100 Subject: zfssnap: ... --- modules/zfssnap/zfssnap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py index 6661efd1..9dcc90a3 100644 --- a/modules/zfssnap/zfssnap.py +++ b/modules/zfssnap/zfssnap.py @@ -76,6 +76,7 @@ def prune(config, dry_run, keep_newest): if row.name not in prunable_snapshots: continue + base_name, _, _ = row.name.rpartition('@') creation = datetime.fromtimestamp(int(row.timestamp), timezone.utc) items[base_name].append(Snap(name=row.name, creation=creation)) -- cgit v1.2.3