Skip to content
Snippets Groups Projects
Verified Commit 4c5e1fee authored by David Mehren's avatar David Mehren
Browse files

Fix config generation for non-empty source dir list

parent de671fb9
No related branches found
No related tags found
No related merge requests found
location:
# List of source directories to backup. Globs are expanded.
source_directories: {{ borgbackup_source_dirs | to_nice_yaml }}
{% if borgbackup_source_dirs | length == 0 %}
source_directories: []
{% else %}
source_directories:
{% for item in borgbackup_source_dirs %}
- {{ item }}
{% endfor %}
{% endif %}
# Paths to local or remote repositories.
repositories:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment