Skip to content

Commit

Permalink
Merge pull request #1 from linickx/ssh_not_ready
Browse files Browse the repository at this point in the history
Initial MrO patch to stop hangs
  • Loading branch information
linickx committed Sep 7, 2015
2 parents 28c6d88 + a030f6c commit fb36afd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crassh.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import re

# Version Control in a Variable
crassh_version = "1.13"
crassh_version = "1.14"

# Default Vars
sfile=''
Expand Down Expand Up @@ -71,7 +71,8 @@ def send_command(command = "show ver", hostname = "Switch", bail_timeout = 60):
break

# update receive buffer whilst waiting for the prompt to come back
output += remote_conn.recv(2048)
if ssh_session.recv_ready():
output += remote_conn.recv(2048)

# Search the output for our prompt
theoutput = output.splitlines()
Expand Down

0 comments on commit fb36afd

Please sign in to comment.