mirror of
https://github.com/lopes/netbox-scanner.git
synced 2025-07-23 13:54:48 +02:00
Log address get error
This commit is contained in:
parent
96b85808e9
commit
06032d8c8b
@ -41,8 +41,9 @@ class NetBoxScanner(object):
|
|||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
nbhost = self.netbox.ipam.ip_addresses.get(address=host[0])
|
nbhost = self.netbox.ipam.ip_addresses.get(address=host[0])
|
||||||
except ValueError:
|
except ValueError as e:
|
||||||
logging.error(f'duplicated: {host[0]}/32')
|
logging.error(e)
|
||||||
|
logging.error(f'possibly duplicated: {host[0]}/32')
|
||||||
self.stats['errors'] += 1
|
self.stats['errors'] += 1
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user