template pxarexclude - verify if vars are defined before looping

This commit is contained in:
Ludovic Cartier 2024-12-24 10:54:28 +01:00
parent 9a8f6dad5d
commit e38a7f96b2

View File

@ -1,7 +1,11 @@
/*
{% if backup_path_exclude is defined %}
{% for item in backup_path_exclude %}
{{ item.value }}
{% endfor %}
{% endif %}
{% if backup_path_include is defined %}
{% for item in backup_path_include %}
!{{ item.path }}
{% endfor %}
{% endif %}