1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-11-10 00:00:35 +00:00

fix templates (do not create include/exclude file entries if no in/excludes given)

This commit is contained in:
Norbert Varzariu 2016-01-22 09:56:33 +01:00
parent d71239645f
commit e823fef87c

View File

@ -85,12 +85,12 @@ du_args <%= @du_args %>
<% if @one_fs != '' -%>
one_fs <%= @one_fs_num %>
<% end -%>
<% if @include != '' -%>
<% if not @real_include.is_empty? -%>
<% if @include_file != '' -%>
include_file <%= @include_file %>
<% end -%>
<% end -%>
<% if @exclude != '' -%>
<% if not @real_exclude.is_empty? -%>
<% if @exclude_file != '' -%>
exclude_file <%= @exclude_file %>
<% end -%>