mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Keep runner API unchanged
This commit is contained in:
parent
46bafcafef
commit
990936992c
3 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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.')
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue