summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenes Nemeth <denes.nemeth@nokia.com>2018-05-25 10:38:01 +0200
committerDenes Nemeth <denes.nemeth@nokia.com>2018-05-30 22:42:24 +0200
commit06d46b4db5f560e9c54ab6ffa896c923696d8b13 (patch)
treec3c5420b6823dd1bac3b902a806f84843d15f4d8
parent0cb1b4d3db7dd64e6abb511f9ae3abc9ea830936 (diff)
Fix API change from accessinfo to accessInfov1.1.02.0.0-ONAPbeijing2.0.0-ONAP
Change-Id: If3720aaa67ca46edadc9558cf9cf7967b76353f9 Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com> Issue-ID: VFC-927
-rw-r--r--.gitignore8
-rw-r--r--ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/GrantResServiceImpl.java6
2 files changed, 8 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 62992f1..ed6be14 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,8 @@
-/target/
+target
.project
-.settings/
+.settings
.checkstyle
.classpath
-coverage-report/
+coverage-report
+.idea
+*.iml
diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/GrantResServiceImpl.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/GrantResServiceImpl.java
index 1afbcbb..6efa099 100644
--- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/GrantResServiceImpl.java
+++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/GrantResServiceImpl.java
@@ -61,11 +61,11 @@ public class GrantResServiceImpl implements GrantResService {
String vimId = additionalparam.getString(ParamConstant.PARAM_VIMID);
JSONObject vimJson = VimUtil.getVimById(vimId);
String tenant = vimJson.getString(ParamConstant.PARAM_TENANT);
- JSONObject accessinfo = new JSONObject();
- accessinfo.put(ParamConstant.PARAM_TENANT, tenant);
+ JSONObject accessInfo = new JSONObject();
+ accessInfo.put(ParamConstant.PARAM_TENANT, tenant);
JSONObject vim = new JSONObject();
vim.put(ParamConstant.PARAM_VIMID, vimId);
- vim.put("accessinfo", accessinfo);
+ vim.put("accessInfo", accessInfo);
LOGGER.info("function=grantResource; vim: {}", vim.toString());
JSONObject result = new JSONObject();
result.put("vim", vim);