Skip to content

Commit

Permalink
address clippy and yamllint feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
labrenbe committed Aug 6, 2024
1 parent 5a6ad47 commit f6b5dcb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rust/operator-binary/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ pub fn build_nifi_properties(
let scopes = provider.scopes.join(",");
properties.insert(
"nifi.security.user.oidc.additional.scopes".to_string(),
format!("{scopes}").to_string(),
scopes.to_string(),
);

properties.insert(
Expand Down
4 changes: 2 additions & 2 deletions rust/operator-binary/src/security/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ impl NifiAuthenticationConfig {
"#});
}
Self::Ldap { provider } => {
login_identity_provider_xml.push_str(&get_ldap_login_identity_provider(&provider)?);
authorizers_xml.push_str(&get_ldap_authorizer(&provider)?);
login_identity_provider_xml.push_str(&get_ldap_login_identity_provider(provider)?);
authorizers_xml.push_str(&get_ldap_authorizer(provider)?);
}
}

Expand Down
4 changes: 2 additions & 2 deletions rust/operator-binary/src/security/oidc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ pub(crate) async fn check_or_generate_oidc_admin_password(
.into_keys()
.collect::<HashSet<_>>();
if keys.contains(STACKABLE_OIDC_ADMIN_PASSWORD_KEY) {
return Ok(false);
Ok(false)
} else {
return OidcAdminPasswordKeyMissingSnafu {
name: build_oidc_admin_password_secret_name(nifi),
namespace,
}
.fail()?;
.fail();
}
}
None => {
Expand Down
2 changes: 1 addition & 1 deletion tests/templates/kuttl/oidc/12-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ kind: Job
metadata:
name: test-nifi-create-reporting-task-1-27-0
status:
succeeded: 1
succeeded: 1

0 comments on commit f6b5dcb

Please sign in to comment.