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

index 67cdcd76dc1f0931979a04e3ee719d7c26f52802..460c668cd1e65e69f1b7d778131cadc1303d67cf 100644 (file)
@@ -3,8 +3,7 @@
 # the next time Puppet runs.  Please make configuration changes to this
 # service in Puppet.
 
-<% %w{src dest tmp vsname}.each do |v|
-       if send(v)
-               -%><%= v + ' = ' + send(v) + "\n" %><%
-       end
-end -%>
+<%= 'src = '+ @src if @src %>
+<%= 'dest = '+ @dest if @dest %>
+<%= 'tmp = '+ @tmp if @tmp %>
+<%= 'vsname = '+ @vsname if @vsname %>