show_timeouts, new default

This commit is contained in:
steve 2014-08-07 10:12:47 -04:00
parent 53fed2cc63
commit d13c7275a7
5 changed files with 13 additions and 9 deletions

View file

@ -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

View file

@ -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

View file

@ -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': '',

View file

@ -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',

View file

@ -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.]'