From 2727ae7c10f123b46792148ec3483bb3cd0808f4 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Thu, 16 Nov 2023 09:31:01 +0000 Subject: [PATCH] make {{ ioc_yaml_file_name }} get rendered in bob files --- src/ibek/gen_scripts.py | 1 + tests/samples/outputs/index.bob | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ibek/gen_scripts.py b/src/ibek/gen_scripts.py index eecd2509d..fb11bbad8 100644 --- a/src/ibek/gen_scripts.py +++ b/src/ibek/gen_scripts.py @@ -61,6 +61,7 @@ def ioc_deserialize(ioc_instance_yaml: Path, definition_yaml: List[Path]) -> IOC # extract the ioc name into UTILS for use in jinja renders name = UTILS.render({}, ioc_instance_dict["ioc_name"]) UTILS.set_ioc_name(name) + ioc_instance_dict["ioc_name"] = name # Create an IOC instance from the instance dict and the model ioc_instance = ioc_model(**ioc_instance_dict) diff --git a/tests/samples/outputs/index.bob b/tests/samples/outputs/index.bob index 8645015d3..dfc016381 100644 --- a/tests/samples/outputs/index.bob +++ b/tests/samples/outputs/index.bob @@ -9,7 +9,7 @@ Title TITLE - {{ ioc_yaml_file_name }} - Index + all.ibek.ioc - Index 0 0 273