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

index b8a542add9dad4c72a817513ad9e49a3eb9a631a..37611678428ef6b31672570ee025938984619400 100644 (file)
@@ -3,11 +3,10 @@
 # the next time Puppet runs.  Please make configuration changes to this
 # service in Puppet.
 
-<% %w{parentdir packagesfile partitionsfile hardwarefile}.each do |v|
-       if send(v)
-               -%><%= v + ' = ' + send(v) + "\n" %><%
-       end
-end -%>
+<%= 'parentdir = '+ @parentdir if @parentdir %>
+<%= 'packagesfile = '+ @packagesfile if @packagesfile %>
+<%= 'partitionsfile = '+ @partitionsfile if @partitionsfile %>
+<%= 'hardwarefile = '+ @hardwarefile if @hardwarefile %>
 
 packages = <%= @packages ? 'yes' : 'no' %>
 partitions = <%= @partitions ? 'yes' : 'no' %>