mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
show_timeouts, new default
This commit is contained in:
parent
53fed2cc63
commit
d13c7275a7
5 changed files with 13 additions and 9 deletions
|
@ -90,6 +90,9 @@
|
|||
# Set the default outputter used by the salt command. The default is "nested"
|
||||
#output: nested
|
||||
|
||||
# Return minions that timeout when running commands like test.ping
|
||||
#show_timeout: True
|
||||
|
||||
# By default output is colored, to disable colored output set the color value
|
||||
# to False
|
||||
#color: True
|
||||
|
|
|
@ -60,10 +60,10 @@ Options
|
|||
Turn on verbosity for the salt call, this will cause the salt command to
|
||||
print out extra data like the job id.
|
||||
|
||||
.. option:: --show-timeout
|
||||
.. option:: --hide-timeout
|
||||
|
||||
Instead of only showing the return data from the online minions this option
|
||||
also prints the names of the minions which could not be reached.
|
||||
Instead of showing the return data for all minions. This option
|
||||
prints only the online minions which could be reached.
|
||||
|
||||
.. option:: -b BATCH, --batch-size=BATCH
|
||||
|
||||
|
|
|
@ -410,7 +410,7 @@ DEFAULT_MASTER_OPTS = {
|
|||
'hgfs_branch_method': 'branches',
|
||||
'hgfs_env_whitelist': [],
|
||||
'hgfs_env_blacklist': [],
|
||||
'show_timeout': False,
|
||||
'show_timeout': True,
|
||||
'show_jid': False,
|
||||
'svnfs_remotes': [],
|
||||
'svnfs_mountpoint': '',
|
||||
|
|
|
@ -1437,10 +1437,11 @@ class SaltCMDOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
|
|||
'queries')
|
||||
)
|
||||
self.add_option(
|
||||
'--show-timeout',
|
||||
default=False,
|
||||
action='store_true',
|
||||
help=('Display minions that timeout without the additional output of --verbose')
|
||||
'--hide-timeout',
|
||||
dest='show_timeout',
|
||||
default=True,
|
||||
action='store_false',
|
||||
help=('Hide minions that timeout')
|
||||
)
|
||||
self.add_option(
|
||||
'--show-jid',
|
||||
|
|
|
@ -49,7 +49,7 @@ _master_options=(
|
|||
'(--state-output --state_output)'{--state-output,--state_output}'[Override the configured state_output value for minion output. Default: full]:Outputs:(full terse mixed changes)'
|
||||
'--subset[Execute the routine on a random subset of the targeted minions]:Subset:'
|
||||
'(-v --verbose)'{-v,--verbose}'[Turn on command verbosity, display jid and active job queries]'
|
||||
'--show-timeout[Display minions that timeout]'
|
||||
'--hide-timeout[Hide minions that timeout]'
|
||||
'(-b --batch --batch-size)'{-b,--batch,--batch-size}'[Execute the salt job in batch mode, pass number or percentage to batch.]:Batch Size:'
|
||||
'(-a --auth --eauth --extrenal-auth)'{-a,--auth,--eauth,--external-auth}'[Specify an external authentication system to use.]:eauth:'
|
||||
'(-T --make-token)'{-T,--make-token}'[Generate and save an authentication token for re-use.]'
|
||||
|
|
Loading…
Add table
Reference in a new issue