summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/userdb/userdbctl.c2
1 files changed, 1 insertions, 1 deletions
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