Merge pull request #41 from FoxxMD/master

Project updates for up-to-date usage
This commit is contained in:
Joe Lopes 2025-05-26 10:32:37 -03:00 committed by GitHub
commit e4005112d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -1,4 +1,5 @@
[NETBOX]
# format => http(s)://IP:PORT
address = <server>
token = <token>
logs = logs/