mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix CLI config
This commit is contained in:
parent
173f3d7aa8
commit
69920366ae
3 changed files with 3 additions and 3 deletions
|
@ -145,7 +145,7 @@ class SaltCMD(salt.utils.parsers.SaltCMDOptionParser):
|
|||
kwargs.update(res)
|
||||
kwargs['eauth'] = self.options.eauth
|
||||
|
||||
if self.config['async']:
|
||||
if self.config['asynchronous']:
|
||||
jid = self.local_client.cmd_async(**kwargs)
|
||||
salt.utils.stringutils.print_cli('Executed command with job ID: {0}'.format(jid))
|
||||
return
|
||||
|
|
|
@ -120,7 +120,7 @@ class APIClient(object):
|
|||
'''
|
||||
cmd = dict(cmd) # make copy
|
||||
client = 'minion' # default to local minion client
|
||||
mode = cmd.get('mode', 'async') # default to 'async'
|
||||
mode = cmd.get('mode', 'asynchronous') # default to 'asynchronous'
|
||||
|
||||
# check for wheel or runner prefix to fun name to use wheel or runner client
|
||||
funparts = cmd.get('fun', '').split('.')
|
||||
|
|
|
@ -1920,7 +1920,7 @@ class SaltCMDOptionParser(six.with_metaclass(OptionParserMeta,
|
|||
self.add_option(
|
||||
'--async',
|
||||
default=False,
|
||||
dest='async',
|
||||
dest='asynchronous',
|
||||
action='store_true',
|
||||
help=('Run the salt command but don\'t wait for a reply.')
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue