diff options
author | franciscovila <javier.paradela.vila@est.tech> | 2023-03-15 15:44:02 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-03-21 16:35:21 +0000 |
commit | 30e99b484fcc96d2304a05db5d8972d2250f0756 (patch) | |
tree | f0bb12692c8bcc6da9e6a46c197ba8cb9608cddb /catalog-be/src/main/java/org/openecomp | |
parent | 9c696c0d1787d50a8481f7ccc66f30a3e0b6e197 (diff) |
Certifying a template with two connected services results in error
Issue-ID: SDC-4437
Signed-off-by: franciscovila <javier.paradela.vila@est.tech>
Change-Id: Iad53c2204b0db48e115f4133c0a68b1f722626fc
Diffstat (limited to 'catalog-be/src/main/java/org/openecomp')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/tosca/ToscaExportHandler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/ToscaExportHandler.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/ToscaExportHandler.java index de35bcf889..773213a80e 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/ToscaExportHandler.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/ToscaExportHandler.java @@ -1579,6 +1579,9 @@ public class ToscaExportHandler { */ private boolean isRequirementBelongToRelation(Component originComponent, RelationshipInfo reqAndRelationshipPair, RequirementDefinition requirement, String fromInstanceId) { + if (originComponent.isService() && requirement.getUniqueId().equals(reqAndRelationshipPair.getRequirementUid())) { + return true; + } if (!StringUtils.equals(requirement.getName(), reqAndRelationshipPair.getRequirement())) { log.debug("Failed to find a requirement with name {} and reqAndRelationshipPair {}", requirement.getName(), reqAndRelationshipPair.getRequirement()); |