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/tests/unit/plugins
Andreas Lutro b5b5410575
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>
2020-10-19 10:58:14 +03:00
..
become Fix more become plugins (#708) 2020-07-29 20:27:16 +02:00
cache Fix more plugin unit tests. (#51) 2020-03-25 22:37:34 +00:00
connection Fix imports, part 2 (#42) 2020-03-25 11:43:51 +00:00
inventory Add inventory plugin for Stackpath Edge Compute (#856) 2020-09-30 14:12:42 +03:00
lookup Add Thycotic DevOps Secrets Vault lookup plugin (#90) 2020-07-13 05:45:07 +00:00
module_utils sanity: Add future boilerplate (#573) 2020-06-24 21:50:36 +02:00
modules move conversion of data to json in slack API handling (#1101) 2020-10-19 10:58:14 +03:00
__init__.py Initial commit 2020-03-09 09:11:07 +00:00