Skip to content

Commit

Permalink
Merge pull request Juniper#544 from vnitinv/master
Browse files Browse the repository at this point in the history
Fix: dev.probe broken when port was passed as int
  • Loading branch information
vnitinv authored Jul 6, 2016
2 parents d3dbd38 + aa44364 commit 678f88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jnpr/junos/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ def probe(self, timeout=5, intvtimeout=1):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(intvtimeout)
try:
s.connect((self.hostname, self._port))
s.connect((self.hostname, int(self._port)))
s.shutdown(socket.SHUT_RDWR)
s.close()
break
Expand Down

0 comments on commit 678f88f

Please sign in to comment.