mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #50120 from terminalmage/salt-jenkins-1137
Fix bad merge conflict resolution
This commit is contained in:
commit
35449b4b14
1 changed files with 12 additions and 4 deletions
|
@ -1052,10 +1052,10 @@ class Single(object):
|
|||
opts_pkg['module_dirs'] = self.opts['module_dirs']
|
||||
opts_pkg['_ssh_version'] = self.opts['_ssh_version']
|
||||
opts_pkg['__master_opts__'] = self.context['master_opts']
|
||||
if '_caller_cachedir' in self.opts:
|
||||
opts_pkg['_caller_cachedir'] = self.opts['_caller_cachedir']
|
||||
if 'known_hosts_file' in self.opts:
|
||||
opts_pkg['known_hosts_file'] = self.opts['known_hosts_file']
|
||||
if '_caller_cachedir' in self.opts:
|
||||
opts_pkg['_caller_cachedir'] = self.opts['_caller_cachedir']
|
||||
else:
|
||||
opts_pkg['_caller_cachedir'] = self.opts['cachedir']
|
||||
# Use the ID defined in the roster file
|
||||
|
@ -1347,12 +1347,20 @@ ARGS = {10}\n'''.format(self.minion_config,
|
|||
if not self.tty:
|
||||
# If RSTR is not seen in both stdout and stderr then there
|
||||
# was a thin deployment problem.
|
||||
log.error('ERROR: Failure deploying thin, retrying: %s\n%s', stdout, stderr)
|
||||
log.error(
|
||||
'ERROR: Failure deploying thin, retrying:\n'
|
||||
'STDOUT:\n%s\nSTDERR:\n%s\nRETCODE: %s',
|
||||
stdout, stderr, retcode
|
||||
)
|
||||
return self.cmd_block()
|
||||
elif not re.search(RSTR_RE, stdout):
|
||||
# If RSTR is not seen in stdout with tty, then there
|
||||
# was a thin deployment problem.
|
||||
log.error('ERROR: Failure deploying thin, retrying: %s\n%s', stdout, stderr)
|
||||
log.error(
|
||||
'ERROR: Failure deploying thin, retrying:\n'
|
||||
'STDOUT:\n%s\nSTDERR:\n%s\nRETCODE: %s',
|
||||
stdout, stderr, retcode
|
||||
)
|
||||
while re.search(RSTR_RE, stdout):
|
||||
stdout = re.split(RSTR_RE, stdout, 1)[1].strip()
|
||||
if self.tty:
|
||||
|
|
Loading…
Add table
Reference in a new issue