DOC: spoa/python: Fixing typo in IP related error messages
authorGilchrist Dadaglo <dadaglo@amazon.com>
Tue, 8 Dec 2020 14:37:08 +0000 (14:37 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 10:46:57 +0000 (11:46 +0100)
This commit fixes typos in the ps_python_set_var_ip* byte manipulation error
messages

This patch must be backported as far as 2.0.

(cherry picked from commit 6884742c651e65d065be9fc10cfaf258dae353f0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit fad025b4f6b416928f5487c88782bef19e797d01)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6ab490e0d62c95e0e345511db2e20c6c5700902b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>

contrib/spoa_server/ps_python.c

index b72b7e7..8c2ff6d 100644 (file)
@@ -172,7 +172,7 @@ static PyObject *ps_python_set_var_ipv4(PyObject *self, PyObject *args)
        if (value == NULL)
                return NULL;
        if (PyString_GET_SIZE(value) != sizeof(ip)) {
-               PyErr_Format(spoa_error, "UPv6 manipulation internal error");
+               PyErr_Format(spoa_error, "IPv4 manipulation internal error");
                return NULL;
        }
        memcpy(&ip, PyString_AS_STRING(value), PyString_GET_SIZE(value));
@@ -205,7 +205,7 @@ static PyObject *ps_python_set_var_ipv6(PyObject *self, PyObject *args)
        if (value == NULL)
                return NULL;
        if (PyString_GET_SIZE(value) != sizeof(ip)) {
-               PyErr_Format(spoa_error, "UPv6 manipulation internal error");
+               PyErr_Format(spoa_error, "IPv6 manipulation internal error");
                return NULL;
        }
        memcpy(&ip, PyString_AS_STRING(value), PyString_GET_SIZE(value));