]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: fix usage of get_mds_map() 19633/head
authorRamana Raja <rraja@redhat.com>
Thu, 21 Dec 2017 12:51:23 +0000 (18:21 +0530)
committerRamana Raja <rraja@redhat.com>
Thu, 21 Dec 2017 12:51:23 +0000 (18:21 +0530)
get_mds_map() is an instance method, and not a global
function. Use it as such.

Fixes: http://tracker.ceph.com/issues/22524
Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/ceph_volume_client.py

index b27953d3f95e714345e51bd2589d856304cbe350..9e4a2a21682dfdc84a322a532cfbe70f67192a78 100644 (file)
@@ -391,7 +391,7 @@ class CephFSVolumeClient(object):
 
         log.info("evict clients with {0}".format(', '.join(client_spec)))
 
-        mds_map = get_mds_map()
+        mds_map = self.get_mds_map()
         up = {}
         for name, gid in mds_map['up'].items():
             # Quirk of the MDSMap JSON dump: keys in the up dict are like "mds_0"