server: Fix healthcheck return code
The healthcheck was not returning a non-zero code when failing, due to an extra layer of Results
This commit is contained in:
committed by
nitnelave
parent
955a559c21
commit
f979e16b95
@@ -99,6 +99,7 @@ fn get_tls_connector() -> Result<RustlsTlsConnector> {
|
||||
#[instrument(skip_all, level = "info", err)]
|
||||
pub async fn check_ldaps(ldaps_options: &LdapsOptions) -> Result<()> {
|
||||
if !ldaps_options.enabled {
|
||||
info!("LDAPS not enabled");
|
||||
return Ok(());
|
||||
};
|
||||
let tls_connector = get_tls_connector()?;
|
||||
|
||||
Reference in New Issue
Block a user