summaryrefslogtreecommitdiffstats
path: root/catalog-be
diff options
context:
space:
mode:
authormojahidi <mojahidul.islam@amdocs.com>2019-03-27 17:29:14 +0530
committermojahidi <mojahidul.islam@amdocs.com>2019-03-27 17:29:30 +0530
commitdbc0456368851fba50d27855e3e6968d18dbe55d (patch)
treee4a833d54568f75860ad5442efd1b33a6b95b944 /catalog-be
parentbf58c270c930e940c193016b30f48131a28ddfe5 (diff)
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 <mojahidul.islam@amdocs.com>
Diffstat (limited to 'catalog-be')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java4
1 files changed, 4 insertions, 0 deletions
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<Resource, StorageOperationStatus> overrideResource = toscaOperationFacade
.overrideComponent(newResource, oldResource);