mirror of
https://github.com/ceph/ceph
synced 2024-12-16 08:26:25 +00:00
mon: OSDMonitor: don't output to stdout in plain text if json is specified
Fixes: #3748 Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
7ea5d84fa3
commit
410906e049
@ -1753,7 +1753,8 @@ bool OSDMonitor::preprocess_command(MMonCommand *m)
|
||||
}
|
||||
if (r == 0) {
|
||||
rdata.append(ds);
|
||||
ss << "dumped osdmap epoch " << p->get_epoch();
|
||||
if (format != "json")
|
||||
ss << " ";
|
||||
}
|
||||
} else if (cmd == "ls") {
|
||||
stringstream ds;
|
||||
|
Loading…
Reference in New Issue
Block a user