Hooks don't work.
#BUG
What's the core of the bug?
I ran a simple http server in python to receive POST content from polemarch hooks. There is no any useful data in hook message
Exception output
INFO:root:POST request, Path: / Headers: Host: 127.0.0.1:24514 User-Agent: python-requests/2.22.0 Accept-Encoding: gzip, deflate Accept: / Connection: keep-alive Content-Length: 98 Content-Type: application/x-www-form-urlencoded
Body: type=on_execution&payload=execution_type&payload=when&payload=target&payload=history&payload=extra
127.0.0.1 - - [04/Mar/2021 12:17:04] "POST / HTTP/1.1" 200 - INFO:root:POST request, Path: / Headers: Host: 127.0.0.1:24514 User-Agent: python-requests/2.22.0 Accept-Encoding: gzip, deflate Accept: / Connection: keep-alive Content-Length: 101 Content-Type: application/x-www-form-urlencoded
Body: type=after_execution&payload=execution_type&payload=when&payload=target&payload=history&payload=extra
127.0.0.1 - - [04/Mar/2021 12:17:12] "POST / HTTP/1.1" 200 -
How to reproduce?
Create a hook in polemarch gui with type of HTTP on any condition. Start to receive hooks How bug we could reproduce? (if it BUG of course)
Current Polemarch version
Django=2.2.16 Polemarch=1.8.1 Vstutils=4.0.14 Ansible=2.9.14 Celery=4.4.0
Database type
PostgreSQL
RPC type
Default