From 5588780887603cc05fc98a8a54a09062ff7fa55d Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Sat, 21 Aug 2021 16:31:06 +0200 Subject: [PATCH] handle filesystem containing spaces --- zsnaplib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsnaplib/__init__.py b/zsnaplib/__init__.py index 566e001..3cc9aa6 100644 --- a/zsnaplib/__init__.py +++ b/zsnaplib/__init__.py @@ -83,7 +83,7 @@ def get_filesystems(zfs_cmd): for row in out.splitlines(): row = row.decode('UTF-8') - ret.add(row.split()[0]) + ret.add(row.split('\t')[0]) return ret