Skip to content

Commit

Permalink
yaml: Add an admin option
Browse files Browse the repository at this point in the history
Don't reuse the LED option, it won't print properly for errors.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Nov 16, 2023
1 parent 1e5fa3c commit c0c554d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yamlconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,11 +820,16 @@ static struct scalar_next_state sc_led[] = {
{}
};

static struct option_info admin_option_info = {
"admin",
IN_MAIN_MAP,
};

static struct scalar_next_state sc_admin[] = {
{ "accepter", IN_MAIN_MAP_KEYVAL, WHICH_INFO_KEYVAL,
.keyval_info = &keyval_accepter },
{ "options", IN_OPTIONS, WHICH_INFO_OPTION,
.option_info = &led_option_info },
.option_info = &admin_option_info },
{}
};

Expand Down

0 comments on commit c0c554d

Please sign in to comment.