summaryrefslogtreecommitdiffstats
path: root/catalog-model
diff options
context:
space:
mode:
authorojasdubey <ojas.dubey@amdocs.com>2018-09-14 16:55:00 +0530
committerOren Kleks <orenkle@amdocs.com>2018-09-17 10:33:17 +0000
commit599f6c050b48932479fa91e189ee42ad2111d95a (patch)
tree8575cd550260857e9acb7fbf83f329dedb0acf57 /catalog-model
parente4962d6d2defd6052dffd32bbef623e1fb5fb76e (diff)
Bugfix - interface_types missing from tosca
1.Fix for interface_types missing from the tosca model for a resource/service 2. Interface name should not contain spaces to make the behavior consistent with tosca node type component naming Change-Id: I8e135a87d659d3fb17d284247bcf222a8be7ccde Issue-ID: SDC-1760 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
Diffstat (limited to 'catalog-model')
-rw-r--r--catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/InterfaceUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/InterfaceUtils.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/InterfaceUtils.java
index a3ec3f2c20..7a36d92c76 100644
--- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/InterfaceUtils.java
+++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/jsontitan/utils/InterfaceUtils.java
@@ -28,6 +28,7 @@ import org.openecomp.sdc.be.datatypes.elements.OperationOutputDefinition;
import org.openecomp.sdc.be.model.InputDefinition;
import org.openecomp.sdc.be.model.InterfaceDefinition;
import org.openecomp.sdc.be.model.Operation;
+import org.openecomp.sdc.common.util.ValidationUtils;
public class InterfaceUtils {
@@ -61,7 +62,7 @@ public class InterfaceUtils {
public static String createInterfaceToscaResourceName(String resourceName) {
StringBuilder sb = new StringBuilder();
try(Formatter formatter = new Formatter(sb)){
- return formatter.format(INTERFACE_TOSCA_RESOURCE_NAME, resourceName).toString();
+ return formatter.format(INTERFACE_TOSCA_RESOURCE_NAME, ValidationUtils.convertToSystemName(resourceName)).toString();
}
}