Skip to content

Commit e400511

Browse files
authored
Merge pull request #41 from FoxxMD/master
Project updates for up-to-date usage
2 parents aa59d5a + 50bfcd6 commit e400511

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nbs/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ def sync_host(self, host):
4747
'''
4848
try:
4949
nbhost = self.netbox.ipam.ip_addresses.get(address=host[0])
50-
except ValueError:
51-
logging.error(f'duplicated: {host[0]}/32')
50+
except ValueError as e:
51+
logging.error(e)
52+
logging.error(f'possibly duplicated: {host[0]}/32')
5253
self.stats['errors'] += 1
5354
return False
5455

netbox-scanner.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[NETBOX]
2+
# format => http(s)://IP:PORT
23
address = <server>
34
token = <token>
45
logs = logs/

0 commit comments

Comments
 (0)