diff options
author | tragait <rahul.tyagi@est.tech> | 2022-01-13 13:15:14 +0000 |
---|---|---|
committer | tragait <rahul.tyagi@est.tech> | 2022-01-21 10:08:44 +0000 |
commit | ecd7f5e418c17d8f0f3f12af4fd0a543084e8254 (patch) | |
tree | b68f4140d48485291bcc4970c14f70fe1b444917 /cps-ncmp-rest/src/main | |
parent | 5ffd70d6cb68373389198a7c3fe5acb80c53e7a0 (diff) |
patch operation for ncmp running
Signed-off-by: tragait <rahul.tyagi@est.tech>
Change-Id: Ib136291963a5d7f115c8637708a1d5a64c62c9f2
Issue-ID: CPS-641
Diffstat (limited to 'cps-ncmp-rest/src/main')
-rwxr-xr-x | cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java index e3c457eaf4..a6b09e845c 100755 --- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java +++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyController.java @@ -204,9 +204,9 @@ public class NetworkCmProxyController implements NetworkCmProxyApi { public ResponseEntity<Object> patchResourceDataRunningForCmHandle(final String resourceIdentifier, final String cmHandle, final Object requestBody, final String contentType) { - networkCmProxyDataService.writeResourceDataPassThroughRunningForCmHandle(cmHandle, + final Object responseObject = networkCmProxyDataService.writeResourceDataPassThroughRunningForCmHandle(cmHandle, resourceIdentifier, PATCH, GSON.toJson(requestBody), contentType); - return new ResponseEntity<>(HttpStatus.OK); + return ResponseEntity.ok(responseObject); } /** |