Skip to content

Commit

Permalink
old switches truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
linickx committed Jan 10, 2017
1 parent 019e6c0 commit 3e2004e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crassh.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def send_command(command="show ver", hostname="Switch", bail_timeout=60):
keeplooping = True

# Regex for either config or enable
regex = '^' + hostname + '(.*)(\ )?#'
regex = '^' + hostname[:20] + '(.*)(\ )?#'
theprompt = re.compile(regex)

# Time when the command started, prepare for timeout.
Expand Down

0 comments on commit 3e2004e

Please sign in to comment.