From 5788e335130a4d7d39fe13c2270773c353abe353 Mon Sep 17 00:00:00 2001 From: ojasdubey Date: Thu, 27 Sep 2018 17:59:22 +0530 Subject: Bugfix - CSAR packing for operations of same WF Fix for failed CSAR packaging if user creates two operations and associated workflows having artifacts to them. Updated the operation name before artifact name to make it unique before adding to zip Change-Id: I1c1997199ba015a0ce2fc35cda9696031babaebe Issue-ID: SDC-1802 Signed-off-by: ojasdubey --- .../org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java index f104079e21..4ef2e06205 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java @@ -3145,7 +3145,7 @@ public class ArtifactsBusinessLogic extends BaseBusinessLogic { Operation operation = optionalOperation.get(); ArtifactDefinition implementationArtifact = operation.getImplementationArtifact(); - implementationArtifact.setArtifactName(artifactInfo.getArtifactName()); + implementationArtifact.setArtifactName(operation.getName() + "_" + artifactInfo.getArtifactName()); implementationArtifact.setDescription(artifactInfo.getDescription()); implementationArtifact.setArtifactType(artifactInfo.getArtifactType()); operation.setImplementation(implementationArtifact); -- cgit 1.2.3-korg