summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/main/java/org/onap/policy/api/main/service/ToscaServiceTemplateService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/policy/api/main/service/ToscaServiceTemplateService.java b/main/src/main/java/org/onap/policy/api/main/service/ToscaServiceTemplateService.java
index d578d0dc..2e8fc9eb 100644
--- a/main/src/main/java/org/onap/policy/api/main/service/ToscaServiceTemplateService.java
+++ b/main/src/main/java/org/onap/policy/api/main/service/ToscaServiceTemplateService.java
@@ -550,14 +550,13 @@ public class ToscaServiceTemplateService {
throws PfModelException {
LOGGER.debug("->getNodeTemplate: name={}, version={}", name, version);
List<ToscaNodeTemplate> nodeTemplates = new ArrayList<>();
- var jpaNodeTemplates = new JpaToscaNodeTemplates();
var dbServiceTemplate = getDefaultJpaToscaServiceTemplate();
//Return empty if no nodeTemplates present in db
if (!ToscaUtils.doNodeTemplatesExist(dbServiceTemplate)) {
return nodeTemplates;
}
- jpaNodeTemplates = dbServiceTemplate.getTopologyTemplate().getNodeTemplates();
+ var jpaNodeTemplates = new JpaToscaNodeTemplates(dbServiceTemplate.getTopologyTemplate().getNodeTemplates());
//Filter specific nodeTemplates
if (name != null && version != null) {