summaryrefslogtreecommitdiffstats
path: root/service/src/main/java/org
diff options
context:
space:
mode:
authorLi Jiale <lijiale@cmss.chinamobile.com>2019-04-24 18:08:40 +0800
committerLi Jiale <lijiale@cmss.chinamobile.com>2019-04-24 18:23:05 +0800
commitca8bbefc447de8a3b5a4cc53eecfb8826f19f331 (patch)
treeccf359d05fe0f61b50f8221cccba58a6a121d41b /service/src/main/java/org
parentf50b93ada64ed6554c3b9b42f836ac711c543871 (diff)
fixed catalog parsing error
Issue-ID: VFC-1365 Change-Id: I1c902ddae5edac00f7a3d57a23d5220eabddff3b Signed-off-by: li jiale <lijiale@cmss.chinamobile.com>
Diffstat (limited to 'service/src/main/java/org')
-rw-r--r--service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java
index e69b5b7..32e0d92 100644
--- a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java
+++ b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java
@@ -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");