From d272fec62dbf8c64d8fff6edc397bdebf6e5c3aa Mon Sep 17 00:00:00 2001 From: aribeiro Date: Thu, 6 Jan 2022 16:25:52 +0000 Subject: [PATCH] Update property to identify SOL004 packages Issue-ID: SDC-3837 Signed-off-by: aribeiro Change-Id: I2af0628cddbbddd790ff9874e2f393a2f31f7407 --- .../src/main/java/org/openecomp/sdc/be/config/Configuration.java | 9 +++++++++ .../services/impl/etsi/ETSIServiceImpl.java | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java index cabda08ce7..5d9f74005b 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java @@ -145,6 +145,7 @@ public class Configuration extends BasicConfiguration { private List artifacts; private Map>> componentAllowedInstanceTypes; private ExternalCsarStore externalCsarStore; + private CsarFormat csarFormat; @SuppressWarnings("unchecked") private Map safeGetCapsInsensitiveMap(Map map) { @@ -515,4 +516,12 @@ public class Configuration extends BasicConfiguration { } } + @Getter + @Setter + @NoArgsConstructor + public static class CsarFormat { + + private String defaultFormat; + } + } diff --git a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/etsi/ETSIServiceImpl.java b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/etsi/ETSIServiceImpl.java index 1399ea9765..a0ab46e589 100644 --- a/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/etsi/ETSIServiceImpl.java +++ b/openecomp-be/lib/openecomp-sdc-vendor-software-product-lib/openecomp-sdc-vendor-software-product-core/src/main/java/org/openecomp/sdc/vendorsoftwareproduct/services/impl/etsi/ETSIServiceImpl.java @@ -98,7 +98,7 @@ public class ETSIServiceImpl implements ETSIService { } private String getDefaultCsarFormat() { - return CommonConfigurationManager.getInstance().getConfigValue("csarFormat", "default", ONAP_CSAR); + return CommonConfigurationManager.getInstance().getConfigValue("csarFormat", "defaultFormat", ONAP_CSAR); } @Override -- 2.16.6