From 26628bf766b14d66f683a4608b97b7538ca582d6 Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Mon, 8 May 2023 09:10:58 -0400 Subject: Enhancing BluePrintJinjaTemplateService * Using CustomJinjavaInterpreter to override getAsString API, and returning context.currentNode.master.image instead of empty string * Earlier rendered result was not keeping unresolved variable rather replacing with empty string, and above helps keeping those. * Upgrading jinja.version to 2.7.0 from 2.5.1 and adding related Junit Test Issue-ID: CCSDK-3895 Signed-off-by: Singal, Kapil (ks220y) Change-Id: I00da64811883957f44f819a44405e073ed7a7755 --- .../archetype-resources/Tests/kotlin/default-variable-value-data.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Tests/kotlin/default-variable-value-data.txt') diff --git a/components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Tests/kotlin/default-variable-value-data.txt b/components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Tests/kotlin/default-variable-value-data.txt index f2359e863..c16bedb0b 100644 --- a/components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Tests/kotlin/default-variable-value-data.txt +++ b/components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Tests/kotlin/default-variable-value-data.txt @@ -1,2 +1,2 @@ -sample-hostname -${node0_backup_router_address} \ No newline at end of file +sample-node0_hostname +${node0_backup_router_address} -- cgit 1.2.3-korg