]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: update ceph_volume_client for cython 7745/head
authorJohn Spray <john.spray@redhat.com>
Fri, 26 Feb 2016 12:49:00 +0000 (12:49 +0000)
committerMehdi Abaakouk <sileht@redhat.com>
Mon, 29 Feb 2016 10:36:57 +0000 (11:36 +0100)
No need to explicitly touch the (no-longer-existing)
load_libcephfs method during module load, as with
the cython version we already get an ImportError
if the C library is unavailable.

Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/ceph_volume_client.py

index 2e284b280caa05ef6390e3b0685f3112db04e28a..8add31114c0281796fd19b6b53605c4f079d35f4 100644 (file)
@@ -15,13 +15,6 @@ import rados
 import cephfs
 from ceph_argparse import json_command
 
-# Generate missing lib errors at load time, rather than the
-# first time someone tries to use the FS
-try:
-    cephfs.load_libcephfs()
-except EnvironmentError as e:
-    raise ImportError(e.__str__())
-
 
 class RadosError(Exception):
     """