Skip to content
Permalink
Browse files

9919 Fix index error in function list_filesystems (move condition out…

…side the loop)
  • Loading branch information...
balrog-nona authored and pyhalov committed Mar 21, 2019
1 parent 7335dd5 commit ef21dad86b1160b229b342a95995c1f2b495757a
Showing with 3 additions and 3 deletions.
  1. +3 −3 usr/share/time-slider/lib/time_slider/zfs.py
@@ -233,9 +233,9 @@ def list_filesystems(self, pattern = None):
Datasets._filesystemslock.release()
raise RuntimeError, '%s failed with exit code %d\n%s' % \
(str(cmd), err, errdata)
for line in outdata.rstrip().split('\n'):
line = line.rstrip().split()
if len(outdata) > 1:
if len(outdata) > 1:
for line in outdata.rstrip().split('\n'):
line = line.rstrip().split()
Datasets.filesystems.append([line[0], line[1]])
Datasets._filesystemslock.release()

0 comments on commit ef21dad

Please sign in to comment.
You can’t perform that action at this time.