mirror of
https://github.com/lopes/netbox-scanner.git
synced 2025-07-20 12:24:46 +02:00
Merge pull request #41 from FoxxMD/master
Project updates for up-to-date usage
This commit is contained in:
commit
e4005112d7
@ -47,8 +47,9 @@ class NetBoxScanner(object):
|
||||
'''
|
||||
try:
|
||||
nbhost = self.netbox.ipam.ip_addresses.get(address=host[0])
|
||||
except ValueError:
|
||||
logging.error(f'duplicated: {host[0]}/32')
|
||||
except ValueError as e:
|
||||
logging.error(e)
|
||||
logging.error(f'possibly duplicated: {host[0]}/32')
|
||||
self.stats['errors'] += 1
|
||||
return False
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
[NETBOX]
|
||||
# format => http(s)://IP:PORT
|
||||
address = <server>
|
||||
token = <token>
|
||||
logs = logs/
|
||||
|
Loading…
x
Reference in New Issue
Block a user