mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +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 {
|
Some(Ok(AdminTaskResponse::ShowReplicationCertificate { cert })) => match output_mode {
|
||||||
ConsoleOutputMode::JSON => {
|
ConsoleOutputMode::JSON => {
|
||||||
eprintln!("{{\"certificate\":\"{}\"}}", cert)
|
println!("{{\"certificate\":\"{}\"}}", cert)
|
||||||
}
|
}
|
||||||
ConsoleOutputMode::Text => {
|
ConsoleOutputMode::Text => {
|
||||||
info!(certificate = ?cert)
|
info!(certificate = ?cert)
|
||||||
|
|
Loading…
Reference in a new issue