diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-22 18:12:21 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-22 18:12:21 -0300 |
| commit | 8ac9d4cc9910af53d3e7c9e9536ed7a77d4d7122 (patch) | |
| tree | 832573672b98904830710eb984c7f3a90f292b0b | |
| parent | d07b6344a8762a255bb895dcc0e6db1bf1ae0435 (diff) | |
| download | puppet-backupninja-8ac9d4cc9910af53d3e7c9e9536ed7a77d4d7122.tar.gz puppet-backupninja-8ac9d4cc9910af53d3e7c9e9536ed7a77d4d7122.tar.bz2 | |
Fix deprecation warnings at sys template
| -rw-r--r-- | templates/sys.conf.erb | 9 |
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' %> |
