⚗️ Do not mock URI

This commit is contained in:
andreas.dinauer 2025-11-16 21:23:43 +01:00
parent ee3e91f092
commit 96cf64e44e

View File

@ -66,12 +66,7 @@ public class NodeDiskService
private URI getURI(String ip, String port) throws URISyntaxException private URI getURI(String ip, String port) throws URISyntaxException
{ {
String profile = ConfigProvider.getConfig().getValue("quarkus.profile", String.class); return new URI(String.format("http://%s:%s", ip, port));
if ("prod".equals(profile))
{
return new URI(String.format("http://%s:%s", ip, port));
}
return new URI("http://localhost:8080");
} }
private NodeDiskMetrics parse(String input) private NodeDiskMetrics parse(String input)