Use parameters list when converting monitor parameters to json

The json conversion now processes the general monitor parameters similarly
to the module-specific settings.
This commit is contained in:
Esa Korhonen
2018-08-09 11:52:15 +03:00
parent 1572e088bf
commit eab0a22518
5 changed files with 67 additions and 54 deletions

View File

@ -2001,7 +2001,7 @@ json_t* service_parameters_to_json(const SERVICE* service)
/** Add custom module parameters */
const MXS_MODULE* mod = get_module(service->routerModule, MODULE_ROUTER);
config_add_module_params_json(mod, service->svc_config_param, config_service_params, rval);
config_add_module_params_json(service->svc_config_param, mod->parameters, config_service_params, rval);
return rval;
}