Fix CLI config

This commit is contained in:
Bo Maryniuk 2018-07-23 12:15:17 +02:00
parent 173f3d7aa8
commit 69920366ae
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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('.')

View file

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