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:
parent
4733ef3e23
commit
6b4dcdb5ae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue