Fix version string in query 68/73468/1
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 24 Nov 2018 13:35:40 +0000 (19:05 +0530)
committersubhash kumar singh <subhash.kumar.singh@huawei.com>
Sat, 24 Nov 2018 13:35:40 +0000 (19:05 +0530)
Fix version string in query.

Change-Id: Idf990d7f58cc93302670fb270735d71f0a834912
Issue-ID: SO-689
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/rest/CatalogDbAdapterRest.java

index 8a7b7a2..9bcbe16 100644 (file)
@@ -588,7 +588,7 @@ public class CatalogDbAdapterRest {
 
                 if (null == recipe) {
                     NetworkResource nResource = networkResourceRepo.findResourceByModelUUID(rmUuid);
-                    recipe = networkRecipeRepo.findFirstByModelNameAndActionAndVersionStr(nResource.getModelName(), action, vnf.getModelVersion());
+                    recipe = networkRecipeRepo.findFirstByModelNameAndActionAndVersionStr(nResource.getModelName(), action, nResource.getModelVersion());
 
                     // for network fetch the default recipe
                     if (recipe == null) {