From 4e09eb5de8ba5f963ea374f2773fcd6f84cf36b3 Mon Sep 17 00:00:00 2001 From: "PATTANAYAK, SAUMYA SWARUP (sp931a)" Date: Thu, 25 Jun 2020 09:42:48 -0400 Subject: Rollback on failure flag should always be true while vfm replace call Issue-ID: VID-851 Signed-off-by: Soumya Pattanayak Change-Id: I2cb3fd0a6b6d25133e426c76ac5851df9cc55216 --- .../src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vid-app-common/src/main/java/org/onap/vid/job/command') diff --git a/vid-app-common/src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt b/vid-app-common/src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt index a92f610da..734faf650 100644 --- a/vid-app-common/src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt +++ b/vid-app-common/src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt @@ -82,7 +82,7 @@ class VfmoduleCommand @Autowired constructor( } private fun planReplaceMyselfRestCall(commandParentData: CommandParentData): MsoRestCallPlan { - + val shouldRollBackOnFailure = true val newestModel = fetchNewestServiceModel() val serviceInstanceId = serviceInstanceIdFromRequest() @@ -90,7 +90,7 @@ class VfmoduleCommand @Autowired constructor( val (serviceModelInfo, vnfModelInfo, vfmModelInfo) = newestSelector(newestModel, commandParentData); - val originalRequestWithNewestVfmModelInfo = getRequest().cloneWith(vfmModelInfo) + val originalRequestWithNewestVfmModelInfo = getRequest().cloneWith(vfmModelInfo, shouldRollBackOnFailure) val requestDetailsWrapper = msoRequestBuilder.generateVfModuleReplaceRequest( originalRequestWithNewestVfmModelInfo, serviceModelInfo, serviceInstanceId, -- cgit 1.2.3-korg