Showing
1 changed file
with
5 additions
and
2 deletions
@@ -105,8 +105,11 @@ public class OuterIntfCtrl { | @@ -105,8 +105,11 @@ public class OuterIntfCtrl { | ||
105 | */ | 105 | */ |
106 | @RequestMapping("/getPch5NodeHostUnderAz2") | 106 | @RequestMapping("/getPch5NodeHostUnderAz2") |
107 | @ResponseBody | 107 | @ResponseBody |
108 | - public List<String> getPch5NodeHostUnderAz2() { | ||
109 | - return httpClient.defaultPost("/pch5Switch/getPch5NodeHostUnderAz2",null,List.class); | 108 | + public String getPch5NodeHostUnderAz2() { |
109 | + List<String> nodeHostIps= httpClient.defaultPost("/pch5Switch/getPch5NodeHostUnderAz2",null,List.class); | ||
110 | + Map<String,List<String>> map=new HashMap<>(); | ||
111 | + map.put("host",nodeHostIps); | ||
112 | + return JSON.toJSONString(map); | ||
110 | } | 113 | } |
111 | 114 | ||
112 | /** | 115 | /** |
-
Please register or login to post a comment