summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2022-02-01 13:55:51 +0000
committerMichael Morris <michael.morris@est.tech>2022-02-02 11:59:23 +0000
commite61740866d27f969cc0b2190bd4c5dd43cef944d (patch)
treee6ae43dceec00a9ff419ad4683e813b815d412d8 /catalog-model/src/main
parentd76c30d1156c7fa52fa9ab8a8df9562181ecacba (diff)
Fix VFC being removed from the list of allowable types
Issue-ID: SDC-3866 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I45d4c9cd270ad37bdf5ac6dc43be5c54848b123c
Diffstat (limited to 'catalog-model/src/main')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/config/ContainerInstanceTypesData.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/config/ContainerInstanceTypesData.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/config/ContainerInstanceTypesData.java
index a355aa9607..7bf528105c 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/config/ContainerInstanceTypesData.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/config/ContainerInstanceTypesData.java
@@ -21,6 +21,7 @@ package org.openecomp.sdc.be.model.jsonjanusgraph.config;
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import java.util.stream.Collectors;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.openecomp.sdc.be.config.ConfigurationManager;
@@ -73,7 +74,7 @@ public class ContainerInstanceTypesData {
/**
* Gets the list of allowed component instances for a service of the given model.
*
- * @param model the model
+ * @param model the model
* @return the list of allowed component instances
*/
public List<String> getServiceAllowedList(final String modelName) {
@@ -121,6 +122,6 @@ public class ContainerInstanceTypesData {
if (CollectionUtils.isEmpty(allowedInstanceResourceType)) {
return Collections.emptyList();
}
- return allowedInstanceResourceType;
+ return allowedInstanceResourceType.stream().collect(Collectors.toList());
}
}