rfkill: Set scols table name to make the json output valid
[kzak@redhat.com: - s/rfkill/rfkilldevices/] Fixes: https://github.com/karelzak/util-linux/issues/1339 Signed-off-by: Nicolai Dagestad <nicolai@dagestad.fr> Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
0d281926a3
commit
63e523a151
|
@ -465,6 +465,7 @@ static void rfkill_list_init(struct control *ctrl)
|
|||
err(EXIT_FAILURE, _("failed to allocate output table"));
|
||||
|
||||
scols_table_enable_json(ctrl->tb, ctrl->json);
|
||||
scols_table_set_name(ctrl->tb, "rfkilldevices");
|
||||
scols_table_enable_noheadings(ctrl->tb, ctrl->no_headings);
|
||||
scols_table_enable_raw(ctrl->tb, ctrl->raw);
|
||||
|
||||
|
|
Loading…
Reference in New Issue