fix checking of existing snapshots for spacefilled fs names...

This commit is contained in:
Fredrik Eriksson 2021-08-21 19:52:16 +02:00
parent 5588780887
commit 661fa8f426
Signed by: feffe
GPG Key ID: F4329687B0FA7F8D

View File

@ -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)