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:
pando85 2024-11-07 01:30:24 +01:00 committed by GitHub
parent fbbe10e295
commit 5572497909
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)