summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-lua.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-05-17 00:23:07 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:54 +0100
commitde2f6f5dc95ab9254d9015c263590ec2d24cdef7 (patch)
tree4ece63721a91e35eac0245b66f8285934da847e9 /ctl-lib/ctl-lua.c
parent5fc6e56a489dc57894490f8a2a094ae418e917ad (diff)
Update to the new JSON syntax
Change-Id: I4ee750f4d95e9fe47352e6cd1dfaeaa94c292e30 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-lua.c')
-rw-r--r--ctl-lib/ctl-lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c
index ae991c6..c2f2376 100644
--- a/ctl-lib/ctl-lua.c
+++ b/ctl-lib/ctl-lua.c
@@ -752,7 +752,7 @@ static int LuaDoScript(json_object *queryJ, CtlSourceT *source) {
err = wrap_json_unpack(queryJ, "{s:s,s?s,s?s,s?o !}",
"uid", &uid,
"spath", &luaScriptPathJ,
- "function", &func,
+ "action", &func,
"args", &argsJ);
if (err) {