summaryrefslogtreecommitdiffstats
path: root/pomba/service-decomposition/src
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-08-24 19:29:34 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-24 19:29:34 +0000
commit0a0af2fbf83a2fd523b78dbd377cc93abcbc3755 (patch)
tree222e950ce95cf4ff98c80f0d87e42583fc60e963 /pomba/service-decomposition/src
parent29cdab1f28ff20935a4de232684344fa8e59e48c (diff)
parent970bd243613151e56e723eb8a555319be800c703 (diff)
Merge "BugFix:unable to handle resourceType with space"
Diffstat (limited to 'pomba/service-decomposition/src')
-rw-r--r--pomba/service-decomposition/src/main/java/org/onap/sdnc/apps/pomba/servicedecomposition/util/RestUtil.java3
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]));
}