brag: count the number of mds in fsmap not in mdsmap

this change was introduced in 4e9b953

Fixes: http://tracker.ceph.com/issues/19192
Signed-off-by: Peng Zhang <zphj1987@gmail.com>
This commit is contained in:
Kefu Chai 2017-03-06 11:33:27 +08:00
parent 8786b4c8fe
commit 2d25a9c0c7

View File

@ -258,7 +258,7 @@ def get_nums():
num_mons = len(oj['monmap']['mons'])
num_osds = int(oj['osdmap']['osdmap']['num_in_osds'])
try:
num_mdss = oj['mdsmap']['in']
num_mdss = oj['fsmap']['in']
except KeyError:
num_mdss = 0