Skip to content

Commit

Permalink
Merge pull request rackspace-cookbooks#42 from restorando/master
Browse files Browse the repository at this point in the history
Fix reporting exceptions with libyajl2
  • Loading branch information
martinb3 authored Nov 28, 2016
2 parents be6d96a + 17489a7 commit 94d2973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/default/slack_handler_webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def request_body(message, text_attachment)
body[:icon_emoji] = @icon_emoji
end
body[:channel] = @channel if @channel
body[:attachments] = [{ text: text_attachment }] unless text_attachment.nil?
body[:attachments] = [{ text: text_attachment.to_s }] unless text_attachment.nil?
body.to_json
end
end

0 comments on commit 94d2973

Please sign in to comment.