summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/glusterdir.py
diff options
context:
space:
mode:
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/glusterdir.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/glusterdir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/glusterdir.py b/glustolibs-gluster/glustolibs/gluster/glusterdir.py
index f1d8826..f2981cb 100644
--- a/glustolibs-gluster/glustolibs/gluster/glusterdir.py
+++ b/glustolibs-gluster/glustolibs/gluster/glusterdir.py
@@ -96,7 +96,7 @@ def get_dir_contents(host, path):
ret, out, _ = g.run(host, ' ls '+path)
if ret != 0:
return None
- file_dir_list = filter(None, out.split("\n"))
+ file_dir_list = list(filter(None, out.split("\n")))
return file_dir_list