So that we can have both an rlm module "test", and a process
module "test".
We probably need similar command tables for the different types
of modules.
*/
if (mi->state != MODULE_INSTANCE_BOOTSTRAPPED) return 0;
- if (fr_command_register_hook(NULL, mi->name, mi, module_cmd_table) < 0) {
- PERROR("Failed registering radmin commands for module %s", mi->name);
- return -1;
+ if (mi->dl_inst->module->type == DL_MODULE_TYPE_MODULE) {
+ if (fr_command_register_hook(NULL, mi->name, mi, module_cmd_table) < 0) {
+ PERROR("Failed registering radmin commands for module %s", mi->name);
+ return -1;
+ }
}
/*