diff options
author | Frederic Marec <frederic.marec@iot.bzh> | 2018-11-28 11:25:46 +0100 |
---|---|---|
committer | Frederic Marec <frederic.marec@iot.bzh> | 2018-11-30 14:27:37 +0100 |
commit | ebd628ae4fdef394d8b014d72ad4d76dae0109d2 (patch) | |
tree | 77b269c36b1f5faaccfd0bb69dd6610528ac646d /conf.d/controller/lua.d | |
parent | df71761154c09b051ca17fe8cdf63ae477a4f471 (diff) |
Add new assert verbguppy_6.99.2guppy/6.99.26.99.2
Add assertIsTrue verb who allow table and string argument
Bug-AGL: SPEC-1983
Change-Id: I8a13b7cdd8d4b841c37e732ffa225b4b9822fad8
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d')
-rw-r--r-- | conf.d/controller/lua.d/aft.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua index 1ff6d25..7b6379a 100644 --- a/conf.d/controller/lua.d/aft.lua +++ b/conf.d/controller/lua.d/aft.lua @@ -338,7 +338,7 @@ local function assertVerbCallParameters(src, api, verb, args) _AFT.assertIsUserdata(src, "Source must be an opaque userdata pointer which will be passed to the binder") _AFT.assertIsString(api, "API and Verb must be string") _AFT.assertIsString(verb, "API and Verb must be string") - _AFT.assertIsTable(args, "Arguments must use LUA Table (event empty)") + _AFT.assertIsTrue( (type(args) == "table" or type(args) == "string"), "Arguments must use LUA Table or string (even empty)") end function _AFT.callVerb(api, verb, args) |