Start to test all json schema and files.
[slapos.git] / software / slaprunner / parameters.xml.in
1 {% set inst_parameter_dict = {} -%}
2 {% if slapparameter_dict is defined -%}
3 {% for key in slapparameter_dict.keys() -%}
4 {% if key.startswith('parameter-') -%}
5 {% do inst_parameter_dict.__setitem__(key[10:], slapparameter_dict.pop(key)) -%}
6 {% endif -%}
7 {% endfor -%}
8 {% endif -%}
9
10 <?xml version='1.0' encoding='utf-8'?>
11 <instance>
12 {% if slapparameter_dict is defined %}
13 {% for parameter_name in inst_parameter_dict.keys() %}
14 <parameter id="{{ parameter_name }}">{{ inst_parameter_dict[parameter_name] }}</parameter>
15 {% endfor %}
16 {% endif %}
17 </instance>
18