Workflow artifact missing in CSAR 09/86809/1
authorsiddharth0905 <siddharth.singh4@amdocs.com>
Thu, 2 May 2019 11:36:33 +0000 (17:06 +0530)
committersiddharth0905 <siddharth.singh4@amdocs.com>
Thu, 2 May 2019 11:36:33 +0000 (17:06 +0530)
Artifact Delivery call failing in SDC
if any artifact in having artifact name as NULL

Change-Id: I20212434a8fe0ea2960d5b55a7a6834679153526
Issue-ID: SDC-2273
Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java

index 428dd1a..aef13ee 100644 (file)
@@ -5018,7 +5018,7 @@ public class ArtifactsBusinessLogic extends BaseBusinessLogic {
                     NodeTypeEnum parentType = convertParentType(componentType);
                     List<ArtifactDefinition> existingDeploymentArtifacts = getDeploymentArtifacts(toscaComponentEither.left().value(), parentType,null);
                     for (ArtifactDefinition artifactDefinition: existingDeploymentArtifacts){
-                        if(artifactDefinition.getArtifactName().equalsIgnoreCase(artifactInfo.getArtifactName())){
+                        if(artifactInfo.getArtifactName().equalsIgnoreCase(artifactDefinition.getArtifactName())){
                             existingArtifactInfo = artifactDefinition;
                             break;
                         }