You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jr...@apache.org on 2019/04/12 14:14:45 UTC

[trafficserver] branch master updated: Fix reason tag of traffic_ctl host

This is an automated email from the ASF dual-hosted git repository.

jrushford 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 fd8d9ac  Fix reason tag of traffic_ctl host
fd8d9ac is described below

commit fd8d9acf22ef5fc8c7ec44050b5a90a1a05484e6
Author: Xavier Chi <ch...@gmail.com>
AuthorDate: Thu Apr 11 14:08:32 2019 -0500

    Fix reason tag of traffic_ctl host
---
 src/traffic_ctl/traffic_ctl.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/traffic_ctl/traffic_ctl.cc b/src/traffic_ctl/traffic_ctl.cc
index 8efb92a..a826abb 100644
--- a/src/traffic_ctl/traffic_ctl.cc
+++ b/src/traffic_ctl/traffic_ctl.cc
@@ -211,10 +211,10 @@ main(int argc, const char **argv)
   host_command.add_command("down", "Set down one or more host(s)", "", MORE_THAN_ONE_ARG_N, [&]() { engine.status_down(); })
     .add_example_usage("traffic_ctl host down HOST [OPTIONS]")
     .add_option("--time", "-I", "number of seconds that a host is marked down", "", 1)
-    .add_option("--reason", "", "reason for marking the host down, one of 'manual|active|local");
+    .add_option("--reason", "", "reason for marking the host down, one of 'manual|active|local", "", 1);
   host_command.add_command("up", "Set up one or more host(s)", "", MORE_THAN_ONE_ARG_N, [&]() { engine.status_up(); })
     .add_example_usage("traffic_ctl host up METRIC value")
-    .add_option("--reason", "", "reason for marking the host up, one of 'manual|active|local");
+    .add_option("--reason", "", "reason for marking the host up, one of 'manual|active|local", "", 1);
 
   // metric commands
   metric_command.add_command("get", "Get one or more metric values", "", MORE_THAN_ONE_ARG_N, [&]() { engine.metric_get(); })