]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Fix deprecation warnings at backupninja.conf template
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Mar 2016 15:12:02 +0000 (12:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Mar 2016 15:12:02 +0000 (12:12 -0300)
templates/backupninja.conf.erb

index 7706a615d056e35d401277b16f8a65d28d141811..38f78c25d0e1e531c2e018d0272ef5eefb0c69a0 100644 (file)
@@ -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 %>