Improve connection timeout log message

The log message doesn't contain the target ip address which can be
crucial.

Change-Id: Iff674a56267f416114b6bfd6203f3ac76bb5d569
changes/04/632704/1
Tobias Henkel 4 years ago
parent bf5a206c08
commit 6899e19dfc
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2

@ -77,7 +77,7 @@ def nodescan(ip, port=22, timeout=60, gather_hostkeys=True):
key = None
for count in iterate_timeout(
timeout, exceptions.ConnectionTimeoutException,
"connection on port %s" % port):
"connection to %s on port %s" % (ip, port)):
sock = None
t = None
try:

Loading…
Cancel
Save