remove check in order to accept upgrade even if the service in latest model version 99/101499/5
authorAlexey Sandler <alexey.sandler@intl.att.com>
Mon, 10 Feb 2020 19:35:00 +0000 (21:35 +0200)
committerIttay Stern <ittay.stern@att.com>
Mon, 10 Feb 2020 20:20:30 +0000 (20:20 +0000)
Issue-ID: VID-771
Signed-off-by: Alexey Sandler <alexey.sandler@intl.att.com>
Change-Id: I0303422f32f285447d3d7af4aee98427002a679c

vid-app-common/src/main/java/org/onap/vid/job/command/VfmoduleCommand.kt

index 731625c..68c9f53 100644 (file)
@@ -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;