From 823fe902d4293b06334a2b66d01c4e497807d40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 7 Feb 2018 17:39:14 +0200 Subject: [PATCH] Add `passive` to `help alter maxscale` output The command was missing from the help output. --- Documentation/Reference/MaxCtrl.md | 3 ++- maxctrl/autodoc.sh | 3 +++ maxctrl/lib/alter.js | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/Reference/MaxCtrl.md b/Documentation/Reference/MaxCtrl.md index c6faa8907..53f313e4f 100644 --- a/Documentation/Reference/MaxCtrl.md +++ b/Documentation/Reference/MaxCtrl.md @@ -590,7 +590,8 @@ of parameters can be altered at runtime: "auth_read_timeout", "auth_write_timeout", "admin_auth", - "admin_log_auth_failures" + "admin_log_auth_failures", + "passive" ] ## rotate diff --git a/maxctrl/autodoc.sh b/maxctrl/autodoc.sh index 2a1d8a0a1..df7673248 100755 --- a/maxctrl/autodoc.sh +++ b/maxctrl/autodoc.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Install dependencies +npm i + ITEMS=`node maxctrl.js help|awk '/^$/{p=0} {if(p){print $1}}/Commands:/{p=1}'` TOC=$(for i in $ITEMS diff --git a/maxctrl/lib/alter.js b/maxctrl/lib/alter.js index e374802ae..73dcb4fbc 100644 --- a/maxctrl/lib/alter.js +++ b/maxctrl/lib/alter.js @@ -35,7 +35,8 @@ const maxscale_params = [ 'auth_read_timeout', 'auth_write_timeout', 'admin_auth', - 'admin_log_auth_failures' + 'admin_log_auth_failures', + 'passive' ] exports.command = 'alter '