diff options
Diffstat (limited to 'huawei/vnfmadapter')
-rw-r--r-- | huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfResourceRoa.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfResourceRoa.java b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfResourceRoa.java index be7134ea..6dc49af6 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfResourceRoa.java +++ b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfResourceRoa.java @@ -71,7 +71,7 @@ public class VnfResourceRoa { JSONObject dataObject = VnfmJsonUtil.getJsonFromContexts(context); LOG.info("function=grantVnfRes, dataObject: {}", dataObject); - /*if(null == dataObject) { + if(null == dataObject) { LOG.error("function=grantVnfRes, msg=param error"); restJson.put("data", "Params error"); return restJson.toString(); @@ -87,9 +87,10 @@ public class VnfResourceRoa { String vnfmId = grantObj.getString("project_id"); - JSONObject resultObj = vnfResourceMgr.grantVnfResource(grantObj, vnfId, vnfmId);*/ + JSONObject resultObj = vnfResourceMgr.grantVnfResource(grantObj, vnfId, vnfmId); + LOG.info("grantVnfResource resultObj:", resultObj); JSONObject res = new JSONObject(); - res.put("msg","grant success"); + res.put("msg", "grant success"); return res.toString(); } |