diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 22:46:37 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-19 22:46:37 +0100 |
commit | 09a5bbeebf3cfded81e19186222c7993e82cdf1e (patch) | |
tree | 49d21a7e19fa93b338467dade858166db43113dd /modules | |
parent | 2f79812b847047f74fd8e98e9ecb8d42c1da645c (diff) | |
download | nixos-09a5bbeebf3cfded81e19186222c7993e82cdf1e.tar nixos-09a5bbeebf3cfded81e19186222c7993e82cdf1e.tar.gz nixos-09a5bbeebf3cfded81e19186222c7993e82cdf1e.tar.bz2 nixos-09a5bbeebf3cfded81e19186222c7993e82cdf1e.tar.xz nixos-09a5bbeebf3cfded81e19186222c7993e82cdf1e.zip |
zfssnap: ...
Diffstat (limited to 'modules')
-rw-r--r-- | modules/zfssnap/zfssnap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py index e77f11f3..4e8a4475 100644 --- a/modules/zfssnap/zfssnap.py +++ b/modules/zfssnap/zfssnap.py | |||
@@ -73,7 +73,7 @@ def prune(config, dry_run, keep_newest): | |||
73 | reader = csv.reader(text_stdout, delimiter='\t', quoting=csv.QUOTE_NONE) | 73 | reader = csv.reader(text_stdout, delimiter='\t', quoting=csv.QUOTE_NONE) |
74 | Row = namedtuple('Row', ['name', 'timestamp']) | 74 | Row = namedtuple('Row', ['name', 'timestamp']) |
75 | for row in map(Row._make, reader): | 75 | for row in map(Row._make, reader): |
76 | if row.name is not in prunable_snapshots: | 76 | if row.name not in prunable_snapshots: |
77 | continue | 77 | continue |
78 | 78 | ||
79 | creation = datetime.fromtimestamp(int(row.timestamp), timezone.utc) | 79 | creation = datetime.fromtimestamp(int(row.timestamp), timezone.utc) |