diff --git a/software/ors-amarisoft/ru/libinstance.jinja2.cfg b/software/ors-amarisoft/ru/libinstance.jinja2.cfg index ebe5b168f23968faf12ddcc5d60f7aa788b45af8..c33c05950346f65ffc94b00971bbd7c5070239bc 100644 --- a/software/ors-amarisoft/ru/libinstance.jinja2.cfg +++ b/software/ors-amarisoft/ru/libinstance.jinja2.cfg @@ -30,11 +30,14 @@ [{{ name }}] {%- endmacro %} -{#- promise emits new buildout section for a promise #} -{%- macro promise(name) %} +{#- promise emits new buildout section for a promise #} +{%- macro promise(name) %} +{#- show in monitor RU1-... instead of COMP-ENB/RU1- #} +{%- root = slap_configuration.instance_title %} +{%- set pretty_name = name.removesuffix('%s/' % root) %} {{ part('promise-'+name) }} <= monitor-promise-base -name = {{ name }}.py +name = {{ pretty_name }}.py config-testing = {{ slapparameter_dict.get("testing", False) }} {%- endmacro %}