From ffa2c06f3ad7875a9dc958813ab43f253e9d72e2 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 1 Oct 2013 17:58:26 -0400 Subject: [PATCH] [COOK-3034] Allow script parameters to be multiline Strings or Arrays --- definitions/logrotate_app.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/definitions/logrotate_app.rb b/definitions/logrotate_app.rb index cfdf296..84a362f 100644 --- a/definitions/logrotate_app.rb +++ b/definitions/logrotate_app.rb @@ -61,10 +61,10 @@ :rotate => params[:rotate], :olddir => params[:olddir], :sharedscripts => params[:sharedscripts], - :postrotate => params[:postrotate], - :prerotate => params[:prerotate], - :firstaction => params[:firstaction], - :lastaction => params[:lastaction], + :postrotate => Array(params[:postrotate]).join("\n"), + :prerotate => Array(params[:prerotate]).join("\n"), + :firstaction => Array(params[:firstaction]).join("\n"), + :lastaction => Array(params[:lastaction]).join("\n"), :options => options ) notifies :reload, 'service[logrotate]', :delayed