lib/chef-irc-snitch.rb in chef-irc-snitch-0.0.5 vs lib/chef-irc-snitch.rb in chef-irc-snitch-0.0.6

- old
+ new

@@ -46,10 +46,10 @@ ip_address = (node.has_key? :ec2) ? node.ec2.public_ipv4 : node.ipaddress message = "Chef run failed on #{node.name} : #{ip_address} : #{node.roles.join(", ")} : https://gist.github.com/#{gist_id}" begin timeout(8) do - CarrierPigeon.send({:uri => @irc_uri, :message => message, :ssl => @ssl}) + CarrierPigeon.send(:uri => @irc_uri, :message => message, :ssl => @ssl) Chef::Log.info("Informed chefs via IRC : #{message}") end rescue Timeout::Error Chef::Log.error("Timed out while attempting to message Chefs via IRC, retrying ...") max_attempts -= 1