Fixed MSB Reg Issues
[holmes/engine-management.git] / engine-d / src / main / java / org / onap / holmes / engine / EngineDActiveApp.java
index 7066646..c045050 100644 (file)
@@ -54,7 +54,7 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
             log.warn(e.getMessage(), e);
         }
 
-        if (!System.getenv("TESTING").equals("1")) {
+        if (!"1".equals(System.getenv("TESTING"))) {
             ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();
             service.scheduleAtFixedRate(
                     new DcaeConfigurationPolling(MicroServiceConfig.getEnv(MicroServiceConfig.HOSTNAME)), 0,
@@ -77,7 +77,7 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
         Set<Node> nodes = new HashSet<>();
         Node node = new Node();
         node.setIp(serviceAddrInfo[0]);
-        node.setPort(serviceAddrInfo[1]);
+        node.setPort("9102");
         node.setCheckType("HTTP");
         node.setCheckUrl(String.format("https://%s:%s/api/holmes-engine-mgmt/v1/healthcheck", serviceAddrInfo[0], "9102"));
         node.setCheckTimeOut("60s");