summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhillip Leigh <phillip.leigh@amdocs.com>2018-08-24 12:11:35 -0400
committerPhillip Leigh <phillip.leigh@amdocs.com>2018-08-24 12:11:57 -0400
commit970bd243613151e56e723eb8a555319be800c703 (patch)
tree3b9a620aed4cd4d63726ef83fa10594b7406c109
parenta71801f323473b7d559b9282c8318b923ff94efa (diff)
BugFix:unable to handle resourceType with space
Issue-ID: SDNC-317 Change-Id: Id063ea3b29f96ee786a29352311f79c9e24432ac Signed-off-by: Phillip Leigh <phillip.leigh@amdocs.com>
-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]));
}