diff options
-rw-r--r-- | pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/util/RestUtil.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/util/RestUtil.java b/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/util/RestUtil.java index c9e2c50..99a929a 100644 --- a/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/util/RestUtil.java +++ b/pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/util/RestUtil.java @@ -349,7 +349,8 @@ public class RestUtil { private static List<Resource> getResourceTypes(String aaiResourceList) { List<Resource> resources = new ArrayList<Resource>(); - String[] resourceList = aaiResourceList.split(","); + String noSpaceAaiResourceList = aaiResourceList.replaceAll("\\s", ""); + String[] resourceList = noSpaceAaiResourceList.split(","); for (int i = 0; i < resourceList.length; i++) { resources.add(new Resource(resourceList[i])); } |