fixed catalog parsing error 40/86140/1
authorLi Jiale <lijiale@cmss.chinamobile.com>
Wed, 24 Apr 2019 10:08:40 +0000 (18:08 +0800)
committerLi Jiale <lijiale@cmss.chinamobile.com>
Wed, 24 Apr 2019 10:23:05 +0000 (18:23 +0800)
Issue-ID: VFC-1365
Change-Id: I1c902ddae5edac00f7a3d57a23d5220eabddff3b
Signed-off-by: li jiale <lijiale@cmss.chinamobile.com>
service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java

index e69b5b7..32e0d92 100644 (file)
@@ -95,7 +95,8 @@ public class ProxyRoa {
         String result = rest.getResponseContent();
         if(null != result) {
             JSONObject ret = JSONObject.fromObject(result);
-            JSONArray catalog = ret.getJSONArray("catalog");
+            JSONObject token = ret.getJSONObject("token");
+            JSONArray catalog = token.getJSONArray("catalog");
 
             for(int i = 0; i < catalog.size(); i++) {
                 JSONArray endpoints = catalog.getJSONObject(i).getJSONArray("endpoints");