diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/zfssnap/zfssnap.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): | |||
76 | if row.name not in prunable_snapshots: | 76 | if row.name not in prunable_snapshots: |
77 | continue | 77 | continue |
78 | 78 | ||
79 | base_name, _, _ = row.name.rpartition('@') | ||
79 | creation = datetime.fromtimestamp(int(row.timestamp), timezone.utc) | 80 | creation = datetime.fromtimestamp(int(row.timestamp), timezone.utc) |
80 | items[base_name].append(Snap(name=row.name, creation=creation)) | 81 | items[base_name].append(Snap(name=row.name, creation=creation)) |
81 | 82 | ||