MXS-1220: Add missing server resource fields

The server resource now correctly fills the `authenticator` and
`authenticator_options` fields` if they are defined.
This commit is contained in:
Markus Mäkelä 2017-07-17 16:37:26 +03:00
parent f9e161eaf6
commit 11e270e60a

View File

@ -1395,6 +1395,16 @@ static json_t* server_json_attributes(const SERVER* server)
json_object_set_new(params, CN_PORT, json_integer(server->port));
json_object_set_new(params, CN_PROTOCOL, json_string(server->protocol));
if (server->authenticator)
{
json_object_set_new(params, CN_AUTHENTICATOR, json_string(server->authenticator));
}
if (server->auth_options)
{
json_object_set_new(params, CN_AUTHENTICATOR_OPTIONS, json_string(server->auth_options));
}
if (*server->monuser)
{
json_object_set_new(params, CN_MONITORUSER, json_string(server->monuser));