Use getVersion() to get Version of VNFResource 71/41371/2
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>
Fri, 6 Apr 2018 11:53:27 +0000 (11:53 +0000)
committerRob Daugherty <rd472p@att.com>
Fri, 6 Apr 2018 14:13:58 +0000 (14:13 +0000)
Use getVersion() to get version of VNFResource.

Change-Id: I7b507041d03130e15723c0b0ed045d43f335d085
Issue-ID: SO-422
Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java

index e1d5905..3fa074e 100644 (file)
@@ -1216,7 +1216,7 @@ public class CatalogDatabase implements Closeable {
             return null;
         }
         
-        VnfRecipe recipe = this.getVnfRecipeByNameVersion(vnfResource.getModelName(), vnfResource.getModelVersion(), action);
+        VnfRecipe recipe = this.getVnfRecipeByNameVersion(vnfResource.getModelName(), vnfResource.getVersion(), action);
         return recipe;        
     }