aboutsummaryrefslogtreecommitdiffstats
path: root/ctl-lib
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-05-18 13:52:47 +0000
commit2acfbf23831472f8a9d61917b1627c5008a63ee2 (patch)
tree4ece63721a91e35eac0245b66f8285934da847e9 /ctl-lib
parentd02408c2d2d8b26c5eaf97186674abee95f1f490 (diff)
Update to the new JSON syntax
Change-Id: I4ee750f4d95e9fe47352e6cd1dfaeaa94c292e30 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib')
-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) {