add properties on VNF BUG 77/83477/1
authormojahidi <mojahidul.islam@amdocs.com>
Wed, 27 Mar 2019 11:59:14 +0000 (17:29 +0530)
committermojahidi <mojahidul.islam@amdocs.com>
Wed, 27 Mar 2019 11:59:30 +0000 (17:29 +0530)
added properties on VNF SELF still not exist after update version of vsp

Change-Id: I594d7965fcbbc8fe9dded5f00cd80360011ff45a
Issue-ID: SDC-2210
Signed-off-by: mojahidi <mojahidul.islam@amdocs.com>
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java

index e99d65e..7ed18d7 100644 (file)
@@ -3324,6 +3324,10 @@ public class ResourceBusinessLogic extends ComponentBusinessLogic {
                 newResource.setInterfaces(oldResource.getInterfaces());
             }
 
+            if (CollectionUtils.isEmpty(newResource.getProperties())) {
+                newResource.setProperties(oldResource.getProperties());
+            }
+
             Either<Resource, StorageOperationStatus> overrideResource = toscaOperationFacade
                     .overrideComponent(newResource, oldResource);