Skip to content

Commit

Permalink
send an initial echo command to linux hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Deleh committed Jul 31, 2024
1 parent 0cc482e commit 4ccc173
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion robmuxinator/robmuxinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,16 @@ def wait_for_host(self, timeout=60):
)
return False

logger.info(" {} nfs is up".format(self._hostname))
# Send an initial 'echo' command to verify if sending commands works
logger.info(" {} sending initial command".format(self._hostname))
ret = 1
while ret != 0:
ret, _, _ = self._ssh_client.send_cmd("echo", get_pty=True)
if ret != 0:
logger.error(" {} sending initial command failed".format(self._hostname))
time.sleep(0.25)
logger.info(" {} sending initial command succeeded".format(self._hostname))

return True


Expand Down

0 comments on commit 4ccc173

Please sign in to comment.