diff options
Diffstat (limited to 'vid-app-common/src/main')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt | 4 | ||||
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/model/serviceInstantiation/VfModule.java | 8 |
2 files changed, 6 insertions, 6 deletions
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, diff --git a/vid-app-common/src/main/java/org/onap/vid/model/serviceInstantiation/VfModule.java b/vid-app-common/src/main/java/org/onap/vid/model/serviceInstantiation/VfModule.java index dc6a2c67a..bfe4d697f 100644 --- a/vid-app-common/src/main/java/org/onap/vid/model/serviceInstantiation/VfModule.java +++ b/vid-app-common/src/main/java/org/onap/vid/model/serviceInstantiation/VfModule.java @@ -118,7 +118,7 @@ public class VfModule extends BaseResource implements JobAdapter.AsyncJobRequest return retainVolumeGroups; } - public VfModule cloneWith(ModelInfo modelInfo) { + public VfModule cloneWith(ModelInfo modelInfo, boolean shouldRollbackOnFailure) { return new VfModule( modelInfo, this.getInstanceName(), @@ -129,7 +129,7 @@ public class VfModule extends BaseResource implements JobAdapter.AsyncJobRequest this.getTenantId(), this.getInstanceParams(), this.getSupplementaryParams(), - this.isRollbackOnFailure(), + shouldRollbackOnFailure, this.isUsePreload(), this.getInstanceId(), this.getTrackById(), @@ -138,8 +138,8 @@ public class VfModule extends BaseResource implements JobAdapter.AsyncJobRequest this.isRetainAssignments(), this.isRetainVolumeGroups(), this.getPosition(), - this.getPauseInstantiation(), - this.getOriginalName() + this.getPauseInstantiation(), + this.getOriginalName() ); } |