summaryrefslogtreecommitdiffstats
path: root/juju/juju-vnfmadapter/Juju-vnfmadapterService/service
diff options
context:
space:
mode:
authorSooriyaa <soponraj@in.ibm.com>2018-09-04 14:43:06 +0530
committerSooriyaa <soponraj@in.ibm.com>2018-09-04 14:43:25 +0530
commit82801c67615cc7d392b1938cabb8230e831c791f (patch)
tree49f3734389f3b3c05f1b18ea245040cd0a8a198f /juju/juju-vnfmadapter/Juju-vnfmadapterService/service
parent7f99d55fb4b103fe514e3486b7864bdbf344118c (diff)
Returning expression instead of variable
Returning expression instead of variable Issue-ID: VFC-1090 Change-Id: I0124520d59def4fbab0edaf8eee8112f39036958 Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
Diffstat (limited to 'juju/juju-vnfmadapter/Juju-vnfmadapterService/service')
-rw-r--r--juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/service/process/VnfResourceMgr.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/service/process/VnfResourceMgr.java b/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/service/process/VnfResourceMgr.java
index d0a1f01..80d24d3 100644
--- a/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/service/process/VnfResourceMgr.java
+++ b/juju/juju-vnfmadapter/Juju-vnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/gvnfm/jujuvnfmadapter/service/process/VnfResourceMgr.java
@@ -211,8 +211,7 @@ public class VnfResourceMgr {
if(vnfmInfo != null && StringUtils.isNotBlank(vnfmInfo.getExtend())){
JSONObject json = JSONObject.fromObject(vnfmInfo.getExtend());
JSONObject extVirtualLinkLink = json.getJSONArray("extVirtualLinks").getJSONObject(0);
- String vimId = extVirtualLinkLink.getJSONObject("vim").getString("vimid");
- return vimId;
+ return extVirtualLinkLink.getJSONObject("vim").getString("vimid");
}
} catch(Exception e) {
LOG.error("vnfmInfo.getExtend() format error!please check it",e);