From eedd1da9f992f9b9d38e298207428500b745156b Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 24 Mar 2023 15:19:21 +0100 Subject: userdbctl: don't show legend when dumping JSON with services --- src/userdb/userdbctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/userdb') diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c index b728cdc1c3..86b8d383df 100644 --- a/src/userdb/userdbctl.c +++ b/src/userdb/userdbctl.c @@ -962,7 +962,7 @@ static int display_services(int argc, char *argv[], void *userdata) { return table_log_print_error(r); } - if (arg_legend) { + if (arg_legend && arg_output != OUTPUT_JSON) { if (table_get_rows(t) > 1) printf("\n%zu services listed.\n", table_get_rows(t) - 1); else -- cgit v1.2.1