summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster
diff options
context:
space:
mode:
authorKartik_Burmee <kburmee@redhat.com>2018-04-02 04:06:18 +0530
committerNigel Babu <nigelb@redhat.com>2018-04-16 12:36:48 +0000
commit6d1a0615f6d6f925a90ab508895809e42fa23bd9 (patch)
tree0f69551cf8800c965d7779af652f4f75270c6323 /glustolibs-gluster
parentb3ab3af3580173ca8c0c3fd7946dffd4c603e42f (diff)
glustolibs/gluster/glusterfile: rpyc connection function call
changed get_connection to rpyc_get_connection. executed a test case after this change and got this error - "error while loading shared libraries: libglusterfs.so.0 cannot open shared object file: No such file or directory". solved this path issue by adding shared library to system library path on my machine. Not sure if it'll be a common issue for everyone using this module. Change-Id: Id52df4b17bc3d30b808bb1eb77c87b03c3ed2f7b Signed-off-by: Kartik_Burmee <kburmee@redhat.com>
Diffstat (limited to 'glustolibs-gluster')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/glusterfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/glusterfile.py b/glustolibs-gluster/glustolibs/gluster/glusterfile.py
index fcc10f25f..9b9b57f0c 100644
--- a/glustolibs-gluster/glustolibs/gluster/glusterfile.py
+++ b/glustolibs-gluster/glustolibs/gluster/glusterfile.py
@@ -49,7 +49,7 @@ def calculate_hash(host, filename):
glusterfs = ctypes.cdll.LoadLibrary("libglusterfs.so.0")
g.log.debug("Library libglusterfs.so.0 loaded locally")
except OSError:
- conn = g.get_connection(host)
+ conn = g.rpyc_get_connection(host)
glusterfs = \
conn.modules.ctypes.cdll.LoadLibrary("libglusterfs.so.0")
g.log.debug("Library libglusterfs.so.0 loaded via rpyc")