From 106c7fdc3e64431e64d66a7546033f6c21f9bfb4 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Tue, 3 Mar 2020 16:14:34 +0000 Subject: Return incoming service templates on create We should return the incoming service template on create requests. This change is required for CSIT tests. Issue-ID: POLICY-1402 Change-Id: I1072c9c16d2b267c34fa015e7e7a355ba9f5338a Signed-off-by: liamfallon --- .../models/tosca/simple/provider/SimpleToscaProvider.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'models-tosca/src/main/java') diff --git a/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/provider/SimpleToscaProvider.java b/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/provider/SimpleToscaProvider.java index 805f9dfed..86174ffc0 100644 --- a/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/provider/SimpleToscaProvider.java +++ b/models-tosca/src/main/java/org/onap/policy/models/tosca/simple/provider/SimpleToscaProvider.java @@ -199,8 +199,8 @@ public class SimpleToscaProvider { JpaToscaServiceTemplate writtenServiceTemplate = appendToServiceTemplate(dao, incomingServiceTemplate); - LOGGER.debug("<-createDataTypes: returnServiceTempalate={}", writtenServiceTemplate); - return writtenServiceTemplate; + LOGGER.debug("<-createDataTypes: writtenServiceTemplate={}", writtenServiceTemplate); + return incomingServiceTemplate; } /** @@ -366,8 +366,8 @@ public class SimpleToscaProvider { JpaToscaServiceTemplate writtenServiceTemplate = appendToServiceTemplate(dao, incomingServiceTemplate); - LOGGER.debug("<-createPolicyTypes: returnServiceTempalate={}", writtenServiceTemplate); - return writtenServiceTemplate; + LOGGER.debug("<-createPolicyTypes: writtenServiceTemplate={}", writtenServiceTemplate); + return incomingServiceTemplate; } /** @@ -538,8 +538,8 @@ public class SimpleToscaProvider { JpaToscaServiceTemplate writtenServiceTemplate = appendToServiceTemplate(dao, incomingServiceTemplate); - LOGGER.debug("<-createPolicies: serviceTemplate={}", writtenServiceTemplate); - return writtenServiceTemplate; + LOGGER.debug("<-createPolicies: writtenServiceTemplate={}", writtenServiceTemplate); + return incomingServiceTemplate; } /** -- cgit 1.2.3-korg