summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGao Weitao <victor.gao@huawei.com>2019-04-25 01:08:50 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-25 01:08:50 +0000
commita5b05c66328d3feb46c2148baedaa78b780b3afb (patch)
tree3322c7454d0fd7c87b5594d5bb305be5d095449d
parentb6babb37d3b09a1c021e517f528812e8186d9f51 (diff)
parentca8bbefc447de8a3b5a4cc53eecfb8826f19f331 (diff)
Merge "fixed catalog parsing error"
-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 b33664f..e9c00f8 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");