diff options
author | luxin <luxin7@huawei.com> | 2018-01-25 11:47:39 +0800 |
---|---|---|
committer | luxin <luxin7@huawei.com> | 2018-01-25 11:47:39 +0800 |
commit | ba31958a569edd78807d3d921296f57703c6cf32 (patch) | |
tree | 9e944d38a46d28c0d81a0df605f5bed5f371a6f3 /ResmanagementService | |
parent | 8fdcb65926d6e89775d8d52550536508359e75b5 (diff) |
vimId Replaced by PARAM_VIMID
Change-Id: Idcde7837f0734e5980caaa7641310b2c01b3d798
Issue-ID: VFC-672
Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'ResmanagementService')
-rw-r--r-- | ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/IResourceAddServiceImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/IResourceAddServiceImpl.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/IResourceAddServiceImpl.java index 66d87d9..24dddd8 100644 --- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/IResourceAddServiceImpl.java +++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/group/impl/IResourceAddServiceImpl.java @@ -23,9 +23,9 @@ import org.onap.vfc.nfvo.resmanagement.common.constant.ParamConstant; import org.onap.vfc.nfvo.resmanagement.common.constant.UrlConstant; import org.onap.vfc.nfvo.resmanagement.common.util.JsonUtil; import org.onap.vfc.nfvo.resmanagement.common.util.RestfulUtil; -import org.onap.vfc.nfvo.resmanagement.service.base.openstack.inf.InterfaceResManagement; -import org.onap.vfc.nfvo.resmanagement.common.util.restclient.ServiceException; import org.onap.vfc.nfvo.resmanagement.common.util.restclient.RestfulParametes; +import org.onap.vfc.nfvo.resmanagement.common.util.restclient.ServiceException; +import org.onap.vfc.nfvo.resmanagement.service.base.openstack.inf.InterfaceResManagement; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.transaction.annotation.Transactional; @@ -133,7 +133,7 @@ public class IResourceAddServiceImpl { for(Object object : hostArray) { JSONObject hostObject = JSONObject.fromObject(object); if(hostObject.getString("project").contains("total")) { - String vimId = JsonUtil.getJsonFieldStr(hostObj, "vimId"); + String vimId = JsonUtil.getJsonFieldStr(hostObj, ParamConstant.PARAM_VIMID); String hostId = vimId + hostName; JSONObject host = new JSONObject(); host.put("id", hostId); @@ -141,7 +141,7 @@ public class IResourceAddServiceImpl { host.put("cpu", JsonUtil.getJsonFieldStr(hostObject, "cpu")); host.put("memory", JsonUtil.getJsonFieldStr(hostObject, "memory_mb")); host.put("disk", JsonUtil.getJsonFieldStr(hostObject, "disk_gb")); - host.put("vimId", JsonUtil.getJsonFieldStr(hostObj, "vimId")); + host.put(ParamConstant.PARAM_VIMID, JsonUtil.getJsonFieldStr(hostObj, ParamConstant.PARAM_VIMID)); host.put("vimName", JsonUtil.getJsonFieldStr(hostObj, "vimName")); return host; } |