Merge pull request #13798 from tchaikov/wip-brag-count-mds

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

Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
Kefu Chai 2017-03-14 21:17:07 +08:00 committed by GitHub
commit 8a7103e85f

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