From a820979640eb7fa4346e0340ce4dd4a5f9e5feeb Mon Sep 17 00:00:00 2001 From: davsad Date: Mon, 15 Mar 2021 08:37:18 +0000 Subject: Support default value for category specific metadata Issue-ID: SDC-3513 Signed-off-by: davsad Change-Id: I4697b66c6d59c1464cf81f9c68fe76b6ca24472c --- .../org/openecomp/sdc/be/components/impl/CategoriesImportManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'catalog-be/src/main/java') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java index 84b23fe3c7..754420dd47 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CategoriesImportManager.java @@ -255,6 +255,7 @@ public class CategoriesImportManager { metadataKeyDef.setMandatory(mandatory); List validValues = (List) metadataKeyInfo.get(MetadataKeyEnum.VALID_VALUES.getName()); metadataKeyDef.setValidValues(validValues); + metadataKeyDef.setDefaultValue((String) metadataKeyInfo.get(MetadataKeyEnum.DEFAULT.getName())); metadataKeyDefs.add(metadataKeyDef); } return metadataKeyDefs; -- cgit 1.2.3-korg