projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3d1b702
)
Disable "slow run" reporting for chef
author
Tom Hughes
<tom@compton.nu>
Tue, 28 Nov 2017 09:11:53 +0000
(09:11 +0000)
committer
Tom Hughes
<tom@compton.nu>
Tue, 28 Nov 2017 09:11:53 +0000
(09:11 +0000)
cookbooks/chef/templates/default/report.rb.erb
patch
|
blob
|
history
diff --git
a/cookbooks/chef/templates/default/report.rb.erb
b/cookbooks/chef/templates/default/report.rb.erb
index 20e32ef4fccea228512250a50e68e2aaaf29e1a8..07a8753a8a4b4ed0bc0366f6111bf754d8e9d0fd 100644
(file)
--- 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"
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
end
return unless message_subject