This is an automated email from the ASF dual-hosted git repository.
masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new a62efe1adc traffic_ctl: get all host statuses by empty arg (#12352)
a62efe1adc is described below
commit a62efe1adcf7eae3ec293ac207d1d6b9936a6c89
Author: Masaori Koshiba <[email protected]>
AuthorDate: Mon Jul 14 08:23:35 2025 +0900
traffic_ctl: get all host statuses by empty arg (#12352)
---
src/traffic_ctl/traffic_ctl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/traffic_ctl/traffic_ctl.cc b/src/traffic_ctl/traffic_ctl.cc
index 33100cc01e..e9b8d73445 100644
--- a/src/traffic_ctl/traffic_ctl.cc
+++ b/src/traffic_ctl/traffic_ctl.cc
@@ -131,7 +131,7 @@ main([[maybe_unused]] int argc, const char **argv)
config_command.add_command("registry", "Show configuration file registry",
[&]() { command->execute(); })
.add_example_usage("traffic_ctl config registry");
// host commands
- host_command.add_command("status", "Get one or more host statuses", "",
MORE_THAN_ONE_ARG_N, [&]() { command->execute(); })
+ host_command.add_command("status", "Get one or more host statuses", "",
MORE_THAN_ZERO_ARG_N, [&]() { command->execute(); })
.add_example_usage("traffic_ctl host status HOST [HOST ...]");
host_command.add_command("down", "Set down one or more host(s)", "",
MORE_THAN_ONE_ARG_N, [&]() { command->execute(); })
.add_example_usage("traffic_ctl host down HOST [OPTIONS]")