diff options
-rw-r--r-- | server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java b/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java index fb10faad..a3d750d9 100644 --- a/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java +++ b/server/src/main/java/org/onap/usecaseui/server/controller/sotn/SotnController.java @@ -57,7 +57,7 @@ public class SotnController { public List<NetWorkResource> getNetWorkResources(){ List<NetWorkResource> result = new ArrayList<NetWorkResource>(); String json = sotnService.getNetWorkResources(); - if(json.indexOf("FAILED")==-1){ + if(json.indexOf("FAILED")!=-1){ return result; } createJson(json,result); @@ -163,7 +163,7 @@ public class SotnController { @RequestMapping(value = {"/getOssInvenory"}, method = RequestMethod.GET) public String getData(){ - String result = HttpUtil.sendGet("http://172.19.44.221:8099/oss/inventory", ""); + String result = HttpUtil.sendGet("http://172.60.3.45:8099/oss/inventory", ""); return result; } private void createJson(String json,List<NetWorkResource> list){ |