Commit 6418677d authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 0668293d
......@@ -10,7 +10,7 @@
{# cell_dict keeps cell slave instances: reference -> cell #}
{# ru_dict keeps RU slave instances + RU instances embedded into cell definitions: reference -> RU #}
{# ru_dict keeps RU slave instances + RU whose definition is embedded into a cell: reference -> RU #}
{% set cell_dict = {} %}
{% set ru_dict = {} %}
{%- for slave in slave_instance_list %}
......@@ -30,8 +30,13 @@
{%- endif %}
{%- endfor %}
{# verify that there is no dangling ru_ref and ruincell_ref #} XXX + resolve those ru*_ref
{# verify that there is no dangling cell->ru references #}
{%- for _, cell in cell_dict|dictsort %}
{%- set ru_ref = J(jcell_ru_ref(cell)) %}
{%- if ru_ref not in ru_dict %}
{%- do error(cell, "referred RU %s does not exist" % ru_ref) %}
{%- endif %}
{%- endfor %}
{# jcell_ru_ref returns RU reference linked from a cell.
if the cell embeds RU definition, its reference comes as `_<cell_ref>_ru`. #}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment