mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-31 09:01:23 -07:00
move conversion of data to json in slack API handling (#1101)
* 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>
This commit is contained in:
parent
135cc1d337
commit
b5b5410575
3 changed files with 48 additions and 5 deletions
2
changelogs/fragments/1101-slack-ts-fix.yaml
Normal file
2
changelogs/fragments/1101-slack-ts-fix.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- slack - avoid trying to update existing message when sending messages that contain the string "ts" (https://github.com/ansible-collections/community.general/issues/1097).
|
Loading…
Add table
Add a link
Reference in a new issue