aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2023-05-08 09:10:58 -0400
committerKAPIL SINGAL <ks220y@att.com>2023-05-08 13:46:41 +0000
commit26628bf766b14d66f683a4608b97b7538ca582d6 (patch)
tree980a42b431ce7a193b757a9f0d744b15b2f470c2 /components
parent2c31f21221231028fad943a231ee2d4c4fe256e1 (diff)
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) <ks220y@att.com> Change-Id: I00da64811883957f44f819a44405e073ed7a7755
Diffstat (limited to 'components')
-rw-r--r--components/model-catalog/blueprint-model/archetype-blueprint/src/main/resources/archetype-resources/Tests/kotlin/default-variable-value-data.txt4
1 files changed, 2 insertions, 2 deletions
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}