Skip to content

Commit 16b2295

Browse files
chu11mergify[bot]
authored andcommitted
flux-module: require arg for flux module stats
Problem: The default target for flux module stats points to a RPC target that no longer exists. Require a stats target with flux module stats. Fixes #6636
1 parent 9d6596b commit 16b2295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/flux-module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,11 @@ int cmd_stats (optparse_t *p, int argc, char **argv)
648648
flux_future_t *f = NULL;
649649
flux_t *h;
650650

651-
if ((n = optparse_option_index (p)) < argc - 1) {
651+
if ((n = optparse_option_index (p)) != (argc - 1)) {
652652
optparse_print_usage (p);
653653
exit (1);
654654
}
655-
service = n < argc ? argv[n++] : "broker";
655+
service = argv[n];
656656
nodeid = FLUX_NODEID_ANY;
657657

658658
if (!(h = flux_open (NULL, 0)))

0 commit comments

Comments
 (0)