Skip to content

Commit

Permalink
9919 Fix index error in function list_filesystems (move condition out…
Browse files Browse the repository at this point in the history
…side the loop)
  • Loading branch information
balrog-nona authored and pyhalov committed Mar 21, 2019
1 parent 7335dd5 commit ef21dad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/share/time-slider/lib/time_slider/zfs.py
Expand Up @@ -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()

Expand Down

0 comments on commit ef21dad

Please sign in to comment.