plugin: notice when plugin has *started* configuring.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-07-29 17:00:51 +09:30
committed by ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent df8a6f615b
commit 79d32ec2f2
4 changed files with 17 additions and 7 deletions

View File

@@ -107,7 +107,8 @@ static struct command_result *json_plugin_control(struct command *cmd,
list_for_each(&cmd->ld->plugins->plugins, p, list) {
json_object_start(response, NULL);
json_add_string(response, "name", p->cmd);
json_add_bool(response, "active", p->configured);
json_add_bool(response, "active",
p->plugin_state == CONFIGURED);
json_object_end(response);
}
json_array_end(response);