Skip to content

Commit

Permalink
fix whitespace stripping (ktbyers#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Montanari authored and ktbyers committed Jul 7, 2019
1 parent bcd8f79 commit d89d75e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions netmiko/base_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,9 @@ def __init__(
# Line Separator in response lines
self.RESPONSE_RETURN = "\n" if response_return is None else response_return
if ip:
self.host = ip
self.ip = ip
self.host = ip.strip()
elif host:
self.host = host
self.host = self.host.strip()
self.ip = self.ip.strip()
self.host = host.strip()
if not ip and not host and "serial" not in device_type:
raise ValueError("Either ip or host must be set")
if port is None:
Expand Down

0 comments on commit d89d75e

Please sign in to comment.