- subject = "Chef run failed on #{node.name}"
- message = "#{run_status.formatted_exception}\n"
- elsif elapsed_time > 300
- subject = "Chef run took #{elapsed_time} on #{node.name}"
- message = ""
+ 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 = ""