mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2025-01-05 17:00:34 +00:00
fix templates (do not create include/exclude file entries if no in/excludes given)
This commit is contained in:
parent
d71239645f
commit
e823fef87c
@ -85,12 +85,12 @@ du_args <%= @du_args %>
|
|||||||
<% if @one_fs != '' -%>
|
<% if @one_fs != '' -%>
|
||||||
one_fs <%= @one_fs_num %>
|
one_fs <%= @one_fs_num %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% if @include != '' -%>
|
<% if not @real_include.is_empty? -%>
|
||||||
<% if @include_file != '' -%>
|
<% if @include_file != '' -%>
|
||||||
include_file <%= @include_file %>
|
include_file <%= @include_file %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% if @exclude != '' -%>
|
<% if not @real_exclude.is_empty? -%>
|
||||||
<% if @exclude_file != '' -%>
|
<% if @exclude_file != '' -%>
|
||||||
exclude_file <%= @exclude_file %>
|
exclude_file <%= @exclude_file %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
Loading…
Reference in New Issue
Block a user