Skip to content

Commit

Permalink
using module constant to refer to the config prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Dec 9, 2023
1 parent 3b47308 commit 230a626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public JsonNode updateConfiguration(JsonNode mutableInput) {
ObjectMapper jsonMapper = jackson.newObjectMapper();

ConfigurationFactory configFactory = new JsonConfigurationFactory(mutableInput, jsonMapper);
AwsSecretsFactory secretsFactory = configFactory.config(AwsSecretsFactory.class, "awssecrets");
AwsSecretsFactory secretsFactory = configFactory.config(AwsSecretsFactory.class, AwsSecretsModule.CONFIG_PREFIX);

if (secretsFactory.isEmpty()) {
return mutableInput;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static AwsSecretsManagerExtender extend(Binder binder) {
return new AwsSecretsManagerExtender(binder);
}

private static final String CONFIG_PREFIX = "awssecrets";
static final String CONFIG_PREFIX = "awssecrets";

@Override
public ModuleCrate crate() {
Expand Down

0 comments on commit 230a626

Please sign in to comment.