Fix VFC being removed from the list of allowable types 26/126926/3
authorJvD_Ericsson <jeff.van.dam@est.tech>
Tue, 1 Feb 2022 13:55:51 +0000 (13:55 +0000)
committerMichael Morris <michael.morris@est.tech>
Wed, 2 Feb 2022 11:59:23 +0000 (11:59 +0000)
Issue-ID: SDC-3866
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I45d4c9cd270ad37bdf5ac6dc43be5c54848b123c

catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/config/ContainerInstanceTypesData.java

index a355aa9..7bf5281 100644 (file)
@@ -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());
     }
 }