diff --git a/templates/provisioners/chef_client/client.erb b/templates/provisioners/chef_client/client.erb index 69a449a24..f2478483a 100644 --- a/templates/provisioners/chef_client/client.erb +++ b/templates/provisioners/chef_client/client.erb @@ -33,7 +33,7 @@ pid_file "/var/run/chef/chef-client.pid" Mixlib::Log::Formatter.show_time = true <% if formatter %> -formatter "<%= formatter %>" +add_formatter "<%= formatter %>" <% end %> <% if custom_configuration -%> diff --git a/templates/provisioners/chef_solo/solo.erb b/templates/provisioners/chef_solo/solo.erb index d88fb523d..9a2077d48 100644 --- a/templates/provisioners/chef_solo/solo.erb +++ b/templates/provisioners/chef_solo/solo.erb @@ -29,7 +29,7 @@ https_proxy_pass <%= https_proxy_pass.inspect %> no_proxy <%= no_proxy.inspect %> <% if formatter %> -formatter "<%= formatter %>" +add_formatter "<%= formatter %>" <% end %> <% if custom_configuration -%>