template pxarexclude - verify if vars are defined before looping
This commit is contained in:
parent
9a8f6dad5d
commit
e38a7f96b2
@ -1,7 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
|
{% if backup_path_exclude is defined %}
|
||||||
{% for item in backup_path_exclude %}
|
{% for item in backup_path_exclude %}
|
||||||
{{ item.value }}
|
{{ item.value }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if backup_path_include is defined %}
|
||||||
{% for item in backup_path_include %}
|
{% for item in backup_path_include %}
|
||||||
!{{ item.path }}
|
!{{ item.path }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user