summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org
diff options
context:
space:
mode:
authorkaty.rotman <katy.rotman@amdocs.com>2018-05-17 12:26:49 +0300
committerOren Kleks <orenkle@amdocs.com>2018-05-17 10:34:25 +0000
commitccbd67e3cad2945fc4e488cd9d3bc528d364fc9c (patch)
treecba2ce7bdd852f7971598a594a4b6ba1df5ff43a /catalog-be/src/main/java/org
parenta48b61432ce6857377fe1b5ea655fc4f3cc54c00 (diff)
removed empty parentheses when no inputs
Issue-ID: SDC-1337 Change-Id: I2919a02dd83c113c3a2ca4a80274fa8dd313e17d Signed-off-by: katy.rotman <katy.rotman@amdocs.com>
Diffstat (limited to 'catalog-be/src/main/java/org')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/InterfacesOperationsToscaUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/InterfacesOperationsToscaUtil.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/InterfacesOperationsToscaUtil.java
index 85b2d17029..5a8aa7e1d5 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/InterfacesOperationsToscaUtil.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/utils/InterfacesOperationsToscaUtil.java
@@ -179,7 +179,8 @@ public class InterfacesOperationsToscaUtil {
private static void fillToscaOperationInputs(OperationDataDefinition operation,
ToscaLifecycleOperationDefinition toscaOperation) {
- if (Objects.isNull(operation.getInputs())) {
+ if (Objects.isNull(operation.getInputs()) || operation.getInputs().isEmpty()) {
+ toscaOperation.setInputs(null);
return;
}
Map<String, ToscaProperty> toscaInputs = new HashMap<>();