Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
328d1649ce |
@ -93,7 +93,7 @@ def get_snapshots(zfs_cmd):
|
|||||||
snapshots = {}
|
snapshots = {}
|
||||||
|
|
||||||
for row in out.splitlines():
|
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)
|
res = re_snapshot.match(row)
|
||||||
if res:
|
if res:
|
||||||
d = datetime.datetime.strptime(res.group(2), time_format)
|
d = datetime.datetime.strptime(res.group(2), time_format)
|
||||||
|
Loading…
Reference in New Issue
Block a user