better leader support in extra

This commit is contained in:
2021-11-23 08:51:03 +01:00
parent e75965fad2
commit f9acc7d6f8
15 changed files with 59 additions and 59 deletions

View File

@ -1,11 +1,11 @@
{% if 'test' in extra.ejabberd.description -%}
{% if 'test' in extra.ejabberd.description.description -%}
contain test
{% endif -%}
{{ extra.ejabberd.description|length }}
{% if 'a' in extra.ejabberd.description -%}
{{ extra.ejabberd.description.description|length }}
{% if 'a' in extra.ejabberd.description.description -%}
contain a
{% endif -%}
{% for description in extra.ejabberd.description -%}
{% for description in extra.ejabberd.description.description -%}
leader: {{ description }}
follower: {{ description.mode }}
{% if description <= description.mode -%}
@ -29,5 +29,5 @@ diff
{{ description + description.mode }}
{{ description.mode + description }}
{% endfor -%}
leader2: {{ extra.ejabberd.description[0] }}
follower2: {{ extra.ejabberd.description[0].mode }}
leader2: {{ extra.ejabberd.description.description[0] }}
follower2: {{ extra.ejabberd.description.description[0].mode }}