From 2af61997a6dc9b2fd054a71e597e05919e01e16e Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Mon, 25 Aug 2014 16:34:44 -0700 Subject: [PATCH] Fixing deprecation warnings in logrotate module Change-Id: I9e69cc96db5e84e729d7bdbe655c3933886903ce --- modules/logrotate/templates/config.erb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/logrotate/templates/config.erb b/modules/logrotate/templates/config.erb index 58c8cf0031..619c2993e1 100644 --- a/modules/logrotate/templates/config.erb +++ b/modules/logrotate/templates/config.erb @@ -1,24 +1,24 @@ -<%= log %> { -<% options.each do |opt| -%> <%= opt %> +<%= @log %> { +<% @options.each do |opt| -%> <%= opt %> <% end -%> -<% if prerotate != 'undef' -%> +<% if @prerotate != 'undef' -%> prerotate - <%= prerotate %> + <%= @prerotate %> endscript <% end -%> -<% if postrotate != 'undef' -%> +<% if @postrotate != 'undef' -%> postrotate - <%= postrotate %> + <%= @postrotate %> endscript <% end -%> -<% if firstaction != 'undef' -%> +<% if @firstaction != 'undef' -%> firstaction - <%= firstaction %> + <%= @firstaction %> endscript <% end -%> -<% if lastaction != 'undef' -%> +<% if @lastaction != 'undef' -%> lastaction - <%= lastaction %> + <%= @lastaction %> endscript <% end -%> }