Flip bad known_hosts line to INFO from WARN re #153
This commit is contained in:
parent
b2b8d5d0a6
commit
3c2f01c91f
|
@ -66,7 +66,7 @@ class HostKeyEntry:
|
||||||
fields = line.split(' ')
|
fields = line.split(' ')
|
||||||
if len(fields) < 3:
|
if len(fields) < 3:
|
||||||
# Bad number of fields
|
# Bad number of fields
|
||||||
log.warn("Not enough fields found in known_hosts in line %s (%r)" %
|
log.info("Not enough fields found in known_hosts in line %s (%r)" %
|
||||||
(lineno, line))
|
(lineno, line))
|
||||||
return None
|
return None
|
||||||
fields = fields[:3]
|
fields = fields[:3]
|
||||||
|
@ -82,7 +82,7 @@ class HostKeyEntry:
|
||||||
elif keytype == 'ssh-dss':
|
elif keytype == 'ssh-dss':
|
||||||
key = DSSKey(data=base64.decodestring(key))
|
key = DSSKey(data=base64.decodestring(key))
|
||||||
else:
|
else:
|
||||||
log.warn("Unable to handle key of type %s" % (keytype,))
|
log.info("Unable to handle key of type %s" % (keytype,))
|
||||||
return None
|
return None
|
||||||
except binascii.Error, e:
|
except binascii.Error, e:
|
||||||
raise InvalidHostKey(line, e)
|
raise InvalidHostKey(line, e)
|
||||||
|
|
Loading…
Reference in New Issue