From dbc0456368851fba50d27855e3e6968d18dbe55d Mon Sep 17 00:00:00 2001 From: mojahidi Date: Wed, 27 Mar 2019 17:29:14 +0530 Subject: add properties on VNF BUG added properties on VNF SELF still not exist after update version of vsp Change-Id: I594d7965fcbbc8fe9dded5f00cd80360011ff45a Issue-ID: SDC-2210 Signed-off-by: mojahidi --- .../org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'catalog-be/src') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java index e99d65eda0..7ed18d727e 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java @@ -3324,6 +3324,10 @@ public class ResourceBusinessLogic extends ComponentBusinessLogic { newResource.setInterfaces(oldResource.getInterfaces()); } + if (CollectionUtils.isEmpty(newResource.getProperties())) { + newResource.setProperties(oldResource.getProperties()); + } + Either overrideResource = toscaOperationFacade .overrideComponent(newResource, oldResource); -- cgit 1.2.3-korg