Skip to content

Commit c1b955b

Browse files
committed
rename errors
1 parent bbcc518 commit c1b955b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rust/operator-binary/src/authentication/ldap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use stackable_druid_crd::security::{
1111
};
1212

1313
use crate::authentication::{
14-
AddLdapVolumesSnafu, CreateLdapEndpointUrlSnafu, Error, MissingLdapBindCredentialsSnafu,
14+
AddLdapVolumesSnafu, ConstructLdapEndpointUrlSnafu, Error, MissingLdapBindCredentialsSnafu,
1515
};
1616

1717
fn add_authenticator_config(
@@ -35,7 +35,7 @@ fn add_authenticator_config(
3535
Some(
3636
provider
3737
.endpoint_url()
38-
.context(CreateLdapEndpointUrlSnafu)?
38+
.context(ConstructLdapEndpointUrlSnafu)?
3939
.into(),
4040
),
4141
);

rust/operator-binary/src/authentication/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ type Result<T, E = Error> = std::result::Result<T, E>;
3030
#[derive(Snafu, Debug)]
3131
pub enum Error {
3232
#[snafu(display("failed to create LDAP endpoint url."))]
33-
CreateLdapEndpointUrl {
33+
ConstructLdapEndpointUrl {
3434
source: stackable_operator::commons::authentication::ldap::Error,
3535
},
3636

3737
#[snafu(display("failed to create the OIDC well-known url."))]
38-
CreateOidcWellKnownUrl {
38+
ConstructOidcWellKnownUrl {
3939
source: stackable_operator::commons::authentication::oidc::Error,
4040
},
4141

rust/operator-binary/src/authentication/oidc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use stackable_operator::{
1111
};
1212

1313
use crate::{
14-
authentication::{AddOidcVolumesSnafu, CreateOidcWellKnownUrlSnafu, Error},
14+
authentication::{AddOidcVolumesSnafu, ConstructOidcWellKnownUrlSnafu, Error},
1515
internal_secret::env_var_from_secret,
1616
};
1717

@@ -23,7 +23,7 @@ fn add_authenticator_config(
2323
) -> Result<(), Error> {
2424
let well_known_url = &provider
2525
.well_known_config_url()
26-
.context(CreateOidcWellKnownUrlSnafu)?;
26+
.context(ConstructOidcWellKnownUrlSnafu)?;
2727

2828
let (oidc_client_id_env, oidc_client_secret_env) =
2929
AuthenticationProvider::client_credentials_env_names(&oidc.client_credentials_secret_ref);

0 commit comments

Comments
 (0)