mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 04:27:02 +01:00
fix(kanidmd): Print replication cert to stdout (#3179)
ShowReplicationCertificate was printing the certificate to stderr which is not consistent with the rest of the output commands.
This commit is contained in:
parent
fbbe10e295
commit
5572497909
|
@ -172,7 +172,7 @@ async fn submit_admin_req(path: &str, req: AdminTaskRequest, output_mode: Consol
|
|||
},
|
||||
Some(Ok(AdminTaskResponse::ShowReplicationCertificate { cert })) => match output_mode {
|
||||
ConsoleOutputMode::JSON => {
|
||||
eprintln!("{{\"certificate\":\"{}\"}}", cert)
|
||||
println!("{{\"certificate\":\"{}\"}}", cert)
|
||||
}
|
||||
ConsoleOutputMode::Text => {
|
||||
info!(certificate = ?cert)
|
||||
|
|
Loading…
Reference in a new issue