1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/notification
patchback[bot] e3e3682eb3
move conversion of data to json in slack API handling (#1101) (#1120)
* move conversion of data to json in slack API handling

at one point in do_notify_slack, we do operations on the payload
variable assuming it's a dict, but it's not: it's a json encoded string.

it's useful to operate on the payload as a dict rather than a string, so
solve this problem by moving the jsonify call to right before sending
the payload to the slack API.

fixes #1097

* add changelog fragment

* Update changelogs/fragments/1101-slack-ts-fix.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

* return payload as a json encoded string for backwards compatibility

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit b5b5410575)

Co-authored-by: Andreas Lutro <anlutro@gmail.com>
2020-10-19 11:33:03 +03:00
..
bearychat.py
campfire.py
catapult.py
cisco_spark.py
cisco_webex.py
flowdock.py
grove.py
hipchat.py
irc.py
jabber.py
logentries_msg.py
mail.py
matrix.py
mattermost.py
mqtt.py
nexmo.py
office_365_connector_card.py
pushbullet.py
pushover.py Specify device for Pushover notification (#802) (#913) 2020-09-17 19:41:11 +02:00
rocketchat.py
say.py
sendgrid.py
slack.py move conversion of data to json in slack API handling (#1101) (#1120) 2020-10-19 11:33:03 +03:00
syslogger.py
telegram.py
twilio.py
typetalk.py