summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java
index f479bb5c0f..6e3019c0c3 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/ResourceBusinessLogic.java
@@ -1389,8 +1389,12 @@ public class ResourceBusinessLogic extends ComponentBusinessLogic {
final String nameWithouNamespacePrefix = nodeTypefullName.substring(nodeTypeNamePrefix.length());
final String[] findTypes = nameWithouNamespacePrefix.split("\\.");
- final String resourceType = findTypes[0];
- return nameWithouNamespacePrefix.substring(resourceType.length());
+
+ if(findTypes.length > 1){
+ final String resourceType = findTypes[0];
+ return nameWithouNamespacePrefix.substring(resourceType.length());
+ }
+ return nameWithouNamespacePrefix;
}
private ImmutablePair<Resource, ActionStatus> createNodeTypeResourceFromYaml(final String yamlName,