1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic.git synced 2024-12-11 23:41:32 +01: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 Define path
#} #}
{% macro path(repo) -%} {% 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 %} {%- endmacro %}
{# {#
Define retention pattern Define retention pattern