From 1943dcd4c9ad652013592653b087350560b7a778 Mon Sep 17 00:00:00 2001 From: Prashanth Pai Date: Mon, 4 May 2015 15:23:06 +0530 Subject: Explicitly set .so file if find_library() fails Change-Id: I8678148961ee192d96e887b6ca7f4b8e4ba89507 Signed-off-by: Prashanth Pai --- gluster/gfapi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gluster/gfapi.py') diff --git a/gluster/gfapi.py b/gluster/gfapi.py index 4aaca38..3554657 100755 --- a/gluster/gfapi.py +++ b/gluster/gfapi.py @@ -335,7 +335,7 @@ class Volume(object): if not isinstance(ent, api.Dirent): break name = ent.d_name[:ent.d_reclen] - if not name in [".", ".."]: + if name not in [".", ".."]: dir_list.append(name) return dir_list @@ -397,7 +397,8 @@ class Volume(object): def open(self, path, flags, mode=0777): if (os.O_CREAT & flags) == os.O_CREAT: - #Without direct call to _api the functest fails on creat and open. + # FIXME: + # Without direct call to _api the functest fails on creat and open. fd = api.client.glfs_creat(self.fs, path, flags, mode) else: -- cgit