diff options
author | imamSidero <imam.hussain@est.tech> | 2022-09-20 16:29:19 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-10-04 18:05:23 +0000 |
commit | ca487f60c2ca67794b16c0ff0cf5cc6deca556fc (patch) | |
tree | 3c80107f0c38eb1e4481128e376839743ebba067 /catalog-model/src/main | |
parent | d073b803991a841ee8fef40aa0c3dd3febbd8e56 (diff) |
Fix for VFC version update on composition window
On add service - composition window VFC version update/change is fixed by mapping appropriate requirements and capabilities
Issue-ID: SDC-4185
Signed-off-by: Imam hussain <imam.hussain@est.tech>
Change-Id: I0de616510ca27c511179f1f34cf7290cd584c7c5
Diffstat (limited to 'catalog-model/src/main')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/NodeTemplateOperation.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/NodeTemplateOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/NodeTemplateOperation.java index 901da1dd73..22548dbf92 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/NodeTemplateOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/NodeTemplateOperation.java @@ -939,9 +939,7 @@ public class NodeTemplateOperation extends BaseOperation { req.addToPath(componentInstance.getUniqueId()); log.debug("enter populateRequirement,get init Requirements OwnerId:{},get componentInstance UniqueId:{}", req.getOwnerId(), componentInstance.getUniqueId()); - if (req.getOwnerId() == null || req.getOwnerId().isEmpty()) { - req.setOwnerId(componentInstance.getUniqueId()); - } + req.setOwnerId(componentInstance.getUniqueId()); log.debug("enter populateRequirement,get init Requirements OwnerName:{}", req.getOwnerName()); if (req.getOwnerName() == null || req.getOwnerName().isEmpty()) { req.setOwnerName(componentInstance.getName()); |