Commit 75d7d712 authored by Daniel Seybold's avatar Daniel Seybold

fixed wrong timescale url format

parent 76220e26
Pipeline #80741 passed with stage
in 20 minutes and 36 seconds
......@@ -269,9 +269,22 @@ public class TSBSCommandBuilder {
//TODO: add support for multiple TimescaleDB endpoints as soon as Timescale relases cluster support
LOGGER.warn("Multiple TimescaleDB endpoints are currently not supported!");
String timescaledbEndpoints = dbEndpoints.get(0).getIpAddress() + ":5432 ";
String timescaledbEndpoints = dbEndpoints.get(0).getIpAddress() + " ";
timescaledbCommand += "--host " + timescaledbEndpoints;
//port
boolean portCheck = dbmsProperties.stream().anyMatch(o -> o.getName().equals("port"));
if(portCheck){
Optional<TSDBMSDBMSProperties> item = dbmsProperties.stream()
.filter(c -> c.getName().equals("port")).findAny();
timescaledbCommand += "--port " + item.get().getValue() + " ";
}else {
LOGGER.debug("No dedicated port provided, using default port 5432!");
timescaledbCommand += "--port 5432 ";
}
//user
boolean userCheck = dbmsProperties.stream().anyMatch(o -> o.getName().equals("user"));
if(userCheck){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment