1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00

Check if item.src is actually filled

This commit is contained in:
Matthias Leutenegger 2019-09-11 15:58:57 +02:00
parent 4733ef3e23
commit 6b4dcdb5ae

View file

@ -37,7 +37,7 @@ set -euxo pipefail
Define path
#}
{% macro path(repo) -%}
{% if repo.src is defined %}{{ repo.src }}{% else %}$HOME/{{ repo.stdin_filename }}{% endif %}
{% if repo.src is defined and repo.src != None and (repo.src|length>0) %}{{ repo.src }}{% else %}{{ repo.stdin_filename }}{% endif %}
{%- endmacro %}
{#
Define retention pattern