From 328d1649ce21cbb3d23bd9605064fcdc005151f6 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sat, 21 Aug 2021 19:52:16 +0200 Subject: [PATCH] fix checking of existing snapshots for spacefilled fs names... --- zsnaplib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsnaplib/__init__.py b/zsnaplib/__init__.py index 3cc9aa6..95f2bb6 100644 --- a/zsnaplib/__init__.py +++ b/zsnaplib/__init__.py @@ -93,7 +93,7 @@ def get_snapshots(zfs_cmd): snapshots = {} for row in out.splitlines(): - row = row.decode('UTF-8').split()[0] + row = row.decode('UTF-8').split('\t')[0] res = re_snapshot.match(row) if res: d = datetime.datetime.strptime(res.group(2), time_format)