Merge pull request #35781 from thatch45/ssh_deploy_more

follow up on the re-deploy if there is a checksum missmatch
This commit is contained in:
Mike Place 2016-08-29 11:15:25 +09:00 committed by GitHub
commit eda2ae0add

View file

@ -1047,11 +1047,12 @@ 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.
return 'ERROR: Failure deploying thin: {0}\n{1}'.format(stdout, stderr), stderr, retcode
log.error('ERROR: Failure deploying thin, retrying: {0}\n{1}'.format(stdout, stderr), 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.
return 'ERROR: Failure deploying thin: {0}\n{1}'.format(stdout, stderr), stderr, retcode
log.error('ERROR: Failure deploying thin, retrying: {0}\n{1}'.format(stdout, stderr), stderr, retcode)
stdout = re.split(RSTR_RE, stdout, 1)[1].strip()
if self.tty:
stderr = ''