]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix mdsmap lookup
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 24 Oct 2017 18:36:06 +0000 (11:36 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 24 Oct 2017 18:36:06 +0000 (11:36 -0700)
We were returning the file system structure and not the mdsmap.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/pybind/ceph_volume_client.py

index a83a3988926eda034e85362cab6d75b4afbc1268..1d313a1ebbe088ed3253eaab3a58b84a1864d420 100644 (file)
@@ -372,7 +372,7 @@ class CephFSVolumeClient(object):
 
     def get_mds_map(self):
         fs_map = self._rados_command("fs dump", {})
-        return fs_map['filesystems'][0]
+        return fs_map['filesystems'][0]['mdsmap']
 
     def evict(self, auth_id, timeout=30, volume_path=None):
         """