summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java
diff options
context:
space:
mode:
authorojasdubey <ojas.dubey@amdocs.com>2018-09-27 17:59:22 +0530
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-10-03 11:57:49 +0000
commit5788e335130a4d7d39fe13c2270773c353abe353 (patch)
tree49e587e2c3222e017c4250ff2a04c36f0193511c /catalog-be/src/main/java
parentaf70a208702df2d178bd1f57f6739e6b07d36b66 (diff)
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 <ojas.dubey@amdocs.com>
Diffstat (limited to 'catalog-be/src/main/java')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactsBusinessLogic.java2
1 files changed, 1 insertions, 1 deletions
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);