aboutsummaryrefslogtreecommitdiffstats
path: root/ncomp-docker-adaptor/src/main
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2017-06-12 04:53:29 +0000
committerGerrit Code Review <gerrit@onap.org>2017-06-12 04:53:29 +0000
commit78353cff1d3e4d9daab1bac2f88933da38336b8b (patch)
tree0027bc7a1b958615106cf51bfb2cc91d1433c2db /ncomp-docker-adaptor/src/main
parent3ed134c47559e34210efdfd73c756de3b7b1bc12 (diff)
parentd69696b30892ae9f4f7ee289921ab4b9225884ab (diff)
Merge "[DCAE-15] Final update for rebased code."HEADmaster
Diffstat (limited to 'ncomp-docker-adaptor/src/main')
-rw-r--r--ncomp-docker-adaptor/src/main/java/org/openecomp/ncomp/servers/docker/DockerDockerHostProvider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/ncomp-docker-adaptor/src/main/java/org/openecomp/ncomp/servers/docker/DockerDockerHostProvider.java b/ncomp-docker-adaptor/src/main/java/org/openecomp/ncomp/servers/docker/DockerDockerHostProvider.java
index 8c83df5..8747fdf 100644
--- a/ncomp-docker-adaptor/src/main/java/org/openecomp/ncomp/servers/docker/DockerDockerHostProvider.java
+++ b/ncomp-docker-adaptor/src/main/java/org/openecomp/ncomp/servers/docker/DockerDockerHostProvider.java
@@ -39,7 +39,7 @@ import java.io.UnsupportedEncodingException;
import org.openecomp.ncomp.sirius.manager.ISiriusServer;
import org.openecomp.ncomp.sirius.manager.ManagementServer;
import org.openecomp.ncomp.sirius.manager.ManagementServerUtils;
-
+import org.openecomp.ncomp.utils.SecurityUtils;
import org.apache.log4j.Logger;
import org.json.JSONArray;
import org.json.JSONObject;
@@ -351,8 +351,8 @@ class DockerDockerHostProvider extends BasicAdaptorProvider {
if (opts.isSetContainerName()) {
try {
- jobj.put("Hostname", InetAddress.getLocalHost().getHostName());
- } catch(UnknownHostException e) {
+ jobj.put("Hostname", SecurityUtils.getHostName());
+ } catch(Exception e) {
logger.error("Unable to determine local hostname", e);
}
}