summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-19 22:49:34 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-19 22:49:34 +0100
commitfff49096859d4b1dac66448eb7dcec8011d504ac (patch)
tree1ade78bcbd1d61bd500d781d2398dcb6269995c3
parent0a88e342bf3406f206369156286f74cc03c37b1b (diff)
downloadnixos-fff49096859d4b1dac66448eb7dcec8011d504ac.tar
nixos-fff49096859d4b1dac66448eb7dcec8011d504ac.tar.gz
nixos-fff49096859d4b1dac66448eb7dcec8011d504ac.tar.bz2
nixos-fff49096859d4b1dac66448eb7dcec8011d504ac.tar.xz
nixos-fff49096859d4b1dac66448eb7dcec8011d504ac.zip
zfssnap: ...
-rw-r--r--modules/zfssnap/zfssnap.py1
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