attempts -= 1
try:
stdin, stdout, stderr = ssh.exec_command(command)
- greenthread.sleep(random.randint(20, 500) / 100.0)
channel = stdout.channel
exit_status = channel.recv_exit_status()
- LOG.debug("Exit Status from ssh:%s", exit_status)
+ LOG.debug("Exit Status from ssh: %s", exit_status)
# exit_status == -1 if no exit code was returned
if exit_status != -1:
- LOG.debug('Result was %s' % exit_status)
+ LOG.debug('Result was %s', exit_status)
if check_exit_code and exit_status != 0:
raise processutils.ProcessExecutionError(
exit_code=exit_status,