From b6abce3629df5eb1f5fa158ae2f9d880c5369240 Mon Sep 17 00:00:00 2001 From: Alexey Sandler Date: Mon, 10 Feb 2020 21:35:00 +0200 Subject: remove check in order to accept upgrade even if the service in latest model version Issue-ID: VID-771 Signed-off-by: Alexey Sandler Change-Id: I0303422f32f285447d3d7af4aee98427002a679c --- .../src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt | 3 --- 1 file changed, 3 deletions(-) (limited to 'vid-app-common/src/main/java/org/onap/vid/job') 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 731625c53..68c9f53e1 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 @@ -207,9 +207,6 @@ class VfmoduleCommand @Autowired constructor( val serviceModelInfo = serviceModelInfoFromRequest() val modelNewestUuid = commandUtils.getNewestModelUuid(serviceModelInfo.modelInvariantId); - check(!modelNewestUuid.equals(serviceModelInfo.modelVersionId, true)) { - "Model version id ${serviceModelInfo.modelVersionId} is already the latest version of model's invariant id ${serviceModelInfo.modelInvariantId}" } - val serviceNewestModel = commandUtils.getServiceModel(modelNewestUuid); return serviceNewestModel; -- cgit 1.2.3-korg