Commit e44713b3 authored by Simon Redman's avatar Simon Redman

Make ssh_helper wait for a prompt before sending a command

parent 729c71b8
......@@ -108,6 +108,7 @@ def run_command_on_host(session, command):
:param command: command to run
:return: None
"""
session.prompt() # Wait for the session to be ready to receive a command
session.sendline(command)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment