diff options
author | Sooriyaa <soponraj@in.ibm.com> | 2018-09-04 14:43:06 +0530 |
---|---|---|
committer | Sooriyaa <soponraj@in.ibm.com> | 2018-09-04 14:43:25 +0530 |
commit | 82801c67615cc7d392b1938cabb8230e831c791f (patch) | |
tree | 49f3734389f3b3c05f1b18ea245040cd0a8a198f /juju/juju-vnfmadapter/Juju-vnfmadapterService/service | |
parent | 7f99d55fb4b103fe514e3486b7864bdbf344118c (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.java | 3 |
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); |