From: Ramana Raja Date: Thu, 21 Dec 2017 12:51:23 +0000 (+0530) Subject: ceph_volume_client: fix usage of get_mds_map() X-Git-Tag: v12.2.13~234^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=906883df076137c115a5b18b350811777c139b2c;p=ceph.git ceph_volume_client: fix usage of get_mds_map() 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 (cherry picked from commit 181e3ea6ee8890a66e460f66a4e8c2aa74a9c002) --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 82102be633fd..138767aebefe 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -399,7 +399,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"