BUG/MEDIUM: spoa/python: Fixing PyObject_Call positional arguments
authorGilchrist Dadaglo <dadaglo@amazon.com>
Tue, 8 Dec 2020 14:37:13 +0000 (14:37 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Dec 2020 07:39:31 +0000 (08:39 +0100)
commit042f697a0fce0255b569786d29e929a4a41cbc46
tree17a1c5ec52fbb41b097389054a04e64049189d40
parentd1c0cf80bceb352b6bf33064b352f6dbe2b0b39c
BUG/MEDIUM: spoa/python: Fixing PyObject_Call positional arguments

As per https://docs.python.org/3/c-api/object.html#c.PyObject_Call,
positional arguments should be an empty tuple when not used.
Previously the code had a dictionary instead of tuple. This commit is to
fix it and use tuple to avoid unexpected consequences

This patch must be backported as far as 2.0.
contrib/spoa_server/ps_python.c