aboutsummaryrefslogtreecommitdiffstats
path: root/sdclient/discovery-service/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'sdclient/discovery-service/src/main/java/org')
-rw-r--r--sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java
index 51b6449..a8851fc 100644
--- a/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java
+++ b/sdclient/discovery-service/src/main/java/org/onap/msb/sdclient/wrapper/consul/Consul.java
@@ -66,6 +66,8 @@ public class Consul {
public boolean apply(final Class<?> clazz) {
return JacksonJaxbJsonProvider.class.isAssignableFrom(clazz);
}
+
+
}).first().isPresent()) {
builder.register(JacksonJaxbJsonProvider.class);
}
@@ -197,7 +199,7 @@ public class Consul {
*/
public Builder withHostAndPort(HostAndPort hostAndPort) {
try {
- this.url = new URL("http", hostAndPort.getHostText(), hostAndPort.getPort(), "");
+ this.url = new URL("http", hostAndPort.getHost(), hostAndPort.getPort(), "");
} catch (MalformedURLException e) {
throw new RuntimeException(e);
}