Keep runner API unchanged

This commit is contained in:
Bo Maryniuk 2018-08-06 16:25:50 +02:00
parent 46bafcafef
commit 990936992c
3 changed files with 3 additions and 3 deletions

View file

@ -236,7 +236,7 @@ class Runner(RunnerClient):
low['kwarg']['orchestration_jid'] = async_pub['jid']
# Run the runner!
if self.opts.get('asynchronous', False):
if self.opts.get('async', False):
if self.opts.get('eauth'):
async_pub = self.cmd_async(low)
else:

View file

@ -42,7 +42,7 @@ def cmd(
func = name
local_opts = {}
local_opts.update(__opts__)
local_opts['asynchronous'] = True # ensure this will be run asynchronous
local_opts['async'] = True # ensure this will be run asynchronous
local_opts.update({
'fun': func,
'arg': arg,

View file

@ -1920,7 +1920,7 @@ class SaltCMDOptionParser(six.with_metaclass(OptionParserMeta,
self.add_option(
'--async',
default=False,
dest='asynchronous',
dest='async',
action='store_true',
help=('Run the salt command but don\'t wait for a reply.')
)