mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix last async issue
This commit is contained in:
parent
b0d5acbe0d
commit
5e07b8306b
1 changed files with 4 additions and 2 deletions
|
@ -533,14 +533,16 @@ class ShellCase(ShellTestCase, AdaptedConfigurationTestCaseMixin, ScriptPathMixi
|
|||
log.debug('Result of run_ssh for command \'%s\': %s', arg_str, ret)
|
||||
return ret
|
||||
|
||||
def run_run(self, arg_str, with_retcode=False, catch_stderr=False, async=False, timeout=180, config_dir=None):
|
||||
def run_run(self, arg_str, with_retcode=False, catch_stderr=False,
|
||||
asynchronous=False, timeout=180, config_dir=None, **kwargs):
|
||||
'''
|
||||
Execute salt-run
|
||||
'''
|
||||
asynchronous = kwargs.get('async', asynchronous)
|
||||
arg_str = '-c {0}{async_flag} -t {timeout} {1}'.format(config_dir or self.get_config_dir(),
|
||||
arg_str,
|
||||
timeout=timeout,
|
||||
async_flag=' --async' if async else '')
|
||||
async_flag=' --async' if asynchronous else '')
|
||||
ret = self.run_script('salt-run',
|
||||
arg_str,
|
||||
with_retcode=with_retcode,
|
||||
|
|
Loading…
Add table
Reference in a new issue