diff options
author | vasraz <vasyl.razinkov@est.tech> | 2020-09-07 11:36:26 +0100 |
---|---|---|
committer | Julien Bertozzi <julien.bertozzi@intl.att.com> | 2020-09-07 12:09:51 +0000 |
commit | bcee4648917b2442f51a75639708bad4cd0fe4ad (patch) | |
tree | af7be96175fb791488dea0599fe503b522a21f80 /catalog-be/src | |
parent | 3490973c6c0d42cc0c020b4bd808964d3c365a99 (diff) |
Replace artifact folder ONBOARDED_PACKAGE in CSAR
Replace artifact folder ONBOARDED_PACKAGE for ETSI_PACKAGE in TOSCA
CSAR. Also included VF artifacts will also have the same folder
replaced.
Change-Id: If03f13a80894e98a0abe1b849322f86a27dfd3f1
Issue-ID: SDC-3261
Signed-off-by: andre.schmid <andre.schmid@est.tech>
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Diffstat (limited to 'catalog-be/src')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java index f378ca0288..1f33a2424b 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java @@ -1143,6 +1143,10 @@ public class CsarUtils { } if (ArtifactTypeEnum.WORKFLOW.getType().equals(artifactType)) { artifactTypeFolder += OperationArtifactUtil.BPMN_ARTIFACT_PATH + File.separator; + } else if (ArtifactTypeEnum.ONBOARDED_PACKAGE.getType().equals(artifactType)) { + // renaming legacy folder ONBOARDED_PACKAGE to the new folder ETSI_PACKAGE + artifactTypeFolder = artifactTypeFolder + .replace(ArtifactTypeEnum.ONBOARDED_PACKAGE.getType(), ArtifactTypeEnum.ETSI_PACKAGE.getType()); } // TODO: We should not do this but in order to keep this refactoring small enough, |