Skip to content

Commit

Permalink
Use proper config key for REST Client override URI
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Sep 16, 2024
1 parent 2fd56d5 commit 53b54aa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ public <T> T build(Class<T> aClass) throws IllegalStateException, RestClientDefi
RestClientsConfig restClients = config.getConfigMapping(RestClientsConfig.class);

// support overriding the URI from the override-uri property
Optional<String> maybeOverrideUri = restClients.getClient(aClass).overrideUri();
var overrideUrlKeyName = String.format("quarkus.rest-client.\"%s\".override-uri", aClass.getSimpleName());
Optional<String> maybeOverrideUri = config.getOptionalValue(overrideUrlKeyName, String.class);
if (maybeOverrideUri.isPresent()) {
uri = URI.create(maybeOverrideUri.get());
}
Expand Down

0 comments on commit 53b54aa

Please sign in to comment.