]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
Fix deprecation warnings at maildir template
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Mar 2016 22:39:33 +0000 (19:39 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 23 Mar 2016 22:39:33 +0000 (19:39 -0300)
templates/maildir.conf.erb

index 4d636eb20a2fb6cfc1209dc35ca1f73d1f3d83b3..ac1611a945c1508b72b0c8f4bdefd470274972c1 100644 (file)
@@ -3,11 +3,15 @@
 # the next time Puppet runs.  Please make configuration changes to this
 # service in Puppet.
 
-<% %w{when srcdir destdir desthost destuser destid_file keepdaily keepweekly keepmonthly}.each do |v|
-       if send(v)
-               -%><%= v + ' = ' + send(v) + "\n" %><%
-       end
-end -%>
+<%= 'when = '+ @when if @when %>
+<%= 'srcdir = '+ @srcdir if @srcdir %>
+<%= 'destdir = '+ @destdir if @destdir %>
+<%= 'desthost = '+ @desthost if @desthost %>
+<%= 'destuser = '+ @destuser if @destuser %>
+<%= 'destid_file = '+ @destid_file if @destid_file %>
+<%= 'keepdaily = '+ @keepdaily if @keepdaily %>
+<%= 'keepweekly = '+ @keepweekly if @keepweekly %>
+<%= 'keepmonthly = '+ @keepmonthly if @keepmonthly %>
 
 remove = <%= @remove ? 'yes' : 'no' %>
 multiconnection = <%= @multiconnection ? 'yes' : 'no' %>