aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ServiceRegistrer.java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ServiceRegistrer.java')
-rw-r--r--catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ServiceRegistrer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ServiceRegistrer.java b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ServiceRegistrer.java
index b81a6561..1e2be58a 100644
--- a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ServiceRegistrer.java
+++ b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ServiceRegistrer.java
@@ -15,6 +15,7 @@
*/
package org.openo.commontosca.catalog.common;
+import org.openo.commontosca.catalog.common.Config;
import org.openo.commontosca.catalog.externalservice.msb.MicroserviceBusConsumer;
import org.openo.commontosca.catalog.externalservice.msb.ServiceRegisterEntity;
import org.slf4j.Logger;
@@ -81,7 +82,7 @@ public class ServiceRegistrer implements Runnable {
catalogEntity.setProtocol("REST");
catalogEntity.setVersion("v1");
catalogEntity.setUrl("/openoapi/catalog/v1");
- catalogEntity.setSingleNode(null, "8200", 0);
+ catalogEntity.setSingleNode(Config.getConfigration().getServiceIp(), "8200", 0);
catalogEntity.setVisualRange("1");
serviceEntityList.add(catalogEntity);
ServiceRegisterEntity httpServiceEntity = new ServiceRegisterEntity();
@@ -89,7 +90,7 @@ public class ServiceRegistrer implements Runnable {
httpServiceEntity.setProtocol("REST");
httpServiceEntity.setVersion("v1");
httpServiceEntity.setUrl("/");
- httpServiceEntity.setSingleNode(null, "8201", 0);
+ httpServiceEntity.setSingleNode(Config.getConfigration().getServiceIp(), "8201", 0);
httpServiceEntity.setVisualRange("1");
serviceEntityList.add(httpServiceEntity);
}