Commit 869cea98 authored by Spyros Trigazis's avatar Spyros Trigazis Committed by Michele Tartara

Modify --mond to yes|no option

Modify --mond option used by hail, hbal and hinfo from non
argument to yes|no option.
Signed-off-by: default avatarSpyros Trigazis <strigazi@gmail.com>
Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent b8f36e88
......@@ -79,7 +79,7 @@ The options that can be passed to the program are as follows:
in the JSON request itself. This is mostly used for debugging. The
format of the file is described in the man page **htools**\(1).
\--mond
\--mond=*yes|no*
If given the program will query all MonDs to fetch data from the
supported data collectors over the network.
......
......@@ -31,6 +31,7 @@ Algorithm options:
**[ \--no-instance-moves ]**
**[ -U *util-file* ]**
**[ \--ignore-dynu ]**
**[ \--mond *yes|no* ]**
**[ \--evac-mode ]**
**[ \--select-instances *inst...* ]**
**[ \--exclude-instances *inst...* ]**
......@@ -349,7 +350,7 @@ The options that can be passed to the program are as follows:
other backends must be selected. The option is described in the man
page **htools**\(1).
\--mond
\--mond=*yes|no*
If given the program will query all MonDs to fetch data from the
supported data collectors over the network.
......
......@@ -219,7 +219,7 @@ support all options. Some common options are:
- vcpu ratio
- spindle ratio
\--mond
\--mond=*yes|no*
If given the program will query all MonDs to fetch data from the
supported data collectors over the network.
......
......@@ -297,9 +297,11 @@ oDiskMoves =
oMonD :: OptType
oMonD =
(Option "" ["mond"]
(NoArg (\ opts -> Ok opts {optMonD = True}))
"Query MonDs",
OptComplNone)
(OptArg (\ f opts -> do
flag <- parseYesNo True f
return $ opts { optMonD = flag }) "CHOICE")
"pass either 'yes' or 'no' to query all monDs",
optComplYesNo)
oMonDDataFile :: OptType
oMonDDataFile =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment