Fix register micro service code
authoryoubowu <wu.youbo@zte.com.cn>
Thu, 9 Mar 2017 08:19:24 +0000 (16:19 +0800)
committer6092002067 <wu.youbo@zte.com.cn>
Thu, 9 Mar 2017 08:19:24 +0000 (16:19 +0800)
Issue-ID:HOLMES-50

Change-Id: I649a457754158096e61dddeb3afd3b2343710993
Signed-off-by: youbowu <wu.youbo@zte.com.cn>
holmes-actions/src/main/java/org/openo/holmes/common/utils/MSBRegisterUtil.java

index ee77be3..fc5e882 100644 (file)
@@ -40,7 +40,7 @@ public class MSBRegisterUtil {
             ObjectMapper mapper = new ObjectMapper();\r
             String content = mapper.writeValueAsString(entity);\r
             HttpPost httpPost = new HttpPost("http://" + MicroServiceConfig.getMsbServerAddr()\r
-                    + ":8086/openoapi/microservices/v1/services?createOrUpdate=false");\r
+                    + ":8086/api/microservices/v1/services?createOrUpdate=false");\r
             if (StringUtils.isNotEmpty(content)) {\r
                 httpPost.setEntity(new ByteArrayEntity(content.getBytes()));\r
             }\r