diff --git a/nbs/__init__.py b/nbs/__init__.py index 223a060..d8fabf5 100644 --- a/nbs/__init__.py +++ b/nbs/__init__.py @@ -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 diff --git a/netbox-scanner.conf b/netbox-scanner.conf index dc91170..9a5e694 100644 --- a/netbox-scanner.conf +++ b/netbox-scanner.conf @@ -1,4 +1,5 @@ [NETBOX] +# format => http(s)://IP:PORT address = token = logs = logs/