summaryrefslogtreecommitdiff
path: root/agni.c
diff options
context:
space:
mode:
Diffstat (limited to 'agni.c')
-rw-r--r--agni.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/agni.c b/agni.c
index b8fa534..e5ea822 100644
--- a/agni.c
+++ b/agni.c
@@ -710,6 +710,20 @@ int th_event_manager(void *data)
ecmd->id = uniq_id();
ecmd->name = alloc_new_str("local-executor");
ecmd->cmd = alloc_new_str(single_cmd->name);
+ switch(single_cmd->type)
+ {
+ case CMD_T_SIMPLE:
+ ecmd->type = TBL_T_SIMPLE;
+ break;
+ case CMD_T_RPC:
+ ecmd->type = TBL_T_RPC;
+ break;
+ case CMD_T_LUA:
+ ecmd->type = TBL_T_LUA;
+ break;
+ default:
+ ERROR("No such type, something wrong here\n");
+ }
ecmd->callback = single_cmd->callback;
if (-1 == tbl_exec_add(etbl, ecmd))