From 09a5bbeebf3cfded81e19186222c7993e82cdf1e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 19 Feb 2022 22:46:37 +0100 Subject: zfssnap: ... --- modules/zfssnap/zfssnap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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): reader = csv.reader(text_stdout, delimiter='\t', quoting=csv.QUOTE_NONE) Row = namedtuple('Row', ['name', 'timestamp']) for row in map(Row._make, reader): - if row.name is not in prunable_snapshots: + if row.name not in prunable_snapshots: continue creation = datetime.fromtimestamp(int(row.timestamp), timezone.utc) -- cgit v1.2.3