From: Silvio Rhatto Date: Sat, 19 Mar 2016 15:12:02 +0000 (-0300) Subject: Fix deprecation warnings at backupninja.conf template X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ddd95e21523eee9cd441a9e9085c9a46cf2e9e26;p=puppet-backupninja.git Fix deprecation warnings at backupninja.conf template --- 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 %>