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:
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