aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-22 18:12:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-22 18:12:21 -0300
commit8ac9d4cc9910af53d3e7c9e9536ed7a77d4d7122 (patch)
tree832573672b98904830710eb984c7f3a90f292b0b
parentd07b6344a8762a255bb895dcc0e6db1bf1ae0435 (diff)
downloadpuppet-backupninja-8ac9d4cc9910af53d3e7c9e9536ed7a77d4d7122.tar.gz
puppet-backupninja-8ac9d4cc9910af53d3e7c9e9536ed7a77d4d7122.tar.bz2
Fix deprecation warnings at sys template
-rw-r--r--templates/sys.conf.erb9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/sys.conf.erb b/templates/sys.conf.erb
index b8a542a..3761167 100644
--- a/templates/sys.conf.erb
+++ b/templates/sys.conf.erb
@@ -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' %>