From 388a527fdf388cd5383b978d0cb5406d787b8661 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Nov 2017 09:11:53 +0000 Subject: [PATCH] Disable "slow run" reporting for chef --- cookbooks/chef/templates/default/report.rb.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/chef/templates/default/report.rb.erb b/cookbooks/chef/templates/default/report.rb.erb index 20e32ef4f..07a8753a8 100644 --- a/cookbooks/chef/templates/default/report.rb.erb +++ b/cookbooks/chef/templates/default/report.rb.erb @@ -20,9 +20,9 @@ class Chef if failed? && !exception.is_a?(SystemExit) message_subject = "Chef run failed on #{node.name}" message_body = "#{run_status.formatted_exception}\n" - elsif elapsed_time > 600 - message_subject = "Chef run took #{elapsed_time} on #{node.name}" - message_body = "" +# elsif elapsed_time > 600 +# message_subject = "Chef run took #{elapsed_time} on #{node.name}" +# message_body = "" end return unless message_subject -- 2.39.5