]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: lua: fix core.register_action typo
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 23 Aug 2023 15:38:42 +0000 (17:38 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 25 Aug 2023 09:52:43 +0000 (11:52 +0200)
"converter" was used in place of "action" as a result of a copy-paste
error probably.

Also, rephrasing the "actions" keyword explanation to prevent confusion
between action name (which is the name of new action about to be created)
and action facilities where we want to expose the new action.

This could be backported to every stable versions.

doc/lua-api/index.rst

index 6f180ac88f60590a5a55a2357888f173d7ec466b..bab55228cacabeadfe149a589f402e17f9492972 100644 (file)
@@ -490,11 +490,11 @@ Core class
   used in HAProxy with the prefix "lua.". An action gets a TXN object class as
   input.
 
-  :param string name: is the name of the converter.
-  :param table actions: is a table of string describing the HAProxy actions who
-   want to register to. The expected actions are 'tcp-req', 'tcp-res', 'http-req'
-   or 'http-res'.
-  :param function func: is the Lua function called to work as converter.
+  :param string name: is the name of the action.
+  :param table actions: is a table of string describing the HAProxy actions
+   facilities where to expose the new action. Expected facilities  are:
+   'tcp-req', 'tcp-res', 'http-req' or 'http-res'.
+  :param function func: is the Lua function called to work as an action.
   :param integer nb_args: is the expected number of argument for the action.
    By default the value is 0.