From 181e3ea6ee8890a66e460f66a4e8c2aa74a9c002 Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Thu, 21 Dec 2017 18:21:23 +0530 Subject: [PATCH] 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 --- src/pybind/ceph_volume_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index b27953d3f95e7..9e4a2a21682df 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -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" -- 2.47.3