aboutsummaryrefslogtreecommitdiffstats
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-17 17:58:26 +0200
commit77c5fe6240f08a55f61afc8d0ed48129bd8394d2 (patch)
treeb97c90ccb98110d8995e1b0ce0cedee33a7cfcf3
parenta49744a921ec1595e863784b1c4226f19959937c (diff)
Update to the new JSON syntax
Change-Id: I4ee750f4d95e9fe47352e6cd1dfaeaa94c292e30 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-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) {