aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-19 12:12:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-19 12:12:02 -0300
commitddd95e21523eee9cd441a9e9085c9a46cf2e9e26 (patch)
treea1a18b522470edc184bfbf2dfffef6426305d2d7
parent72bb9a5cd5c20413992f140476d43ca837f65c1d (diff)
downloadpuppet-backupninja-ddd95e21523eee9cd441a9e9085c9a46cf2e9e26.tar.gz
puppet-backupninja-ddd95e21523eee9cd441a9e9085c9a46cf2e9e26.tar.bz2
Fix deprecation warnings at backupninja.conf template
-rw-r--r--templates/backupninja.conf.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/backupninja.conf.erb b/templates/backupninja.conf.erb
index 7706a61..38f78c2 100644
--- a/templates/backupninja.conf.erb
+++ b/templates/backupninja.conf.erb
@@ -4,17 +4,17 @@
# service in Puppet.
loglevel = <%= @loglvl %>
-when = <%= send(:when) %>
+when = <%= @when %>
reportemail = <%= @reportemail %>
reportsuccess = <%= @reportsuccess ? 'yes' : 'no' %>
reportwarning = <%= @reportwarning ? 'yes' : 'no' %>
-<% if reporthost.is_a? String -%>
+<% if @reporthost.is_a? String -%>
<%= 'reporthost = ' + @reporthost %>
<% end -%>
-<% if reportuser.is_a? String -%>
+<% if @reportuser.is_a? String -%>
<%= 'reportuser = ' + @reportuser %>
<% end -%>
-<% if reportdirectory.is_a? String -%>
+<% if @reportdirectory.is_a? String -%>
<%= 'reportdirectory = ' + @reportdirectory %>
<% end -%>
logfile = <%= @logfile %>