Fix rank field of standby-replay mds daemon in 'ceph fs status'
json output. The rank field for standby-replay mds daemons
were incorrect. It should be of the format '{rank}-s',
where {rank} is the active mds which the standby-replay is
following.
Fixes: https://tracker.ceph.com/issues/67978
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit
20da9296a23fb599ca29d2e97453036b71a20904)
if output_format in ('json', 'json-pretty'):
json_output['mdsmap'].append({
- 'rank': rank,
+ 'rank': f"{daemon_info['rank']}-s",
'name': daemon_info['name'],
'state': 'standby-replay',
'events': events,