diff options
author | vasraz <vasyl.razinkov@est.tech> | 2022-01-17 14:29:03 +0000 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2022-01-17 14:33:08 +0000 |
commit | 129f40e169a572b9dd5cfe6ad66bc0ee74b922d9 (patch) | |
tree | ae2e3ac19368ccb1808a035c57e6dc6fa7f0fb5b /catalog-be/src/main/java/org | |
parent | d80ae5529f51d6ad10759c07cb4960762700faef (diff) |
Add sdc-be-init support for artifact types
Change-Id: Id9fdaf7b7bf0cd5d583434fbe97741dd9836df9d
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3845
Diffstat (limited to 'catalog-be/src/main/java/org')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactTypeImportManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactTypeImportManager.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactTypeImportManager.java index e6ff100fc1..441dfa741a 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactTypeImportManager.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ArtifactTypeImportManager.java @@ -60,7 +60,7 @@ public class ArtifactTypeImportManager { return Either.right(componentsUtils.getResponseFormat(artifactTypes.right().value())); } final List<ArtifactTypeDefinition> elementTypes = createArtifactTypesByDao(artifactTypes.left().value()); - if (includeToModelDefaultImports) { + if (includeToModelDefaultImports && StringUtils.isNotEmpty(modelName)) { commonImportManager.addTypesToDefaultImports(ElementTypeEnum.ARTIFACT_TYPE, artifactTypesYml, modelName); } return Either.left(elementTypes); |