From 6b57c0a080f786bb19c67860e6f19fc371332d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lopes?= Date: Mon, 8 Oct 2018 10:37:29 -0300 Subject: [PATCH] bugfix in host creation --- netbox-scanner/nbscan.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox-scanner/nbscan.py b/netbox-scanner/nbscan.py index 65afc17..6988aaf 100644 --- a/netbox-scanner/nbscan.py +++ b/netbox-scanner/nbscan.py @@ -134,7 +134,7 @@ class NetBoxScanner(object): description_new=host[1]) else: self.netbox.ipam.ip_addresses.create(address=host[0], - tags=[self.tag], description=host[0]) + tags=[self.tag], description=host[1]) self.logger('created', address=host[0], description=host[1]) return True diff --git a/setup.py b/setup.py index fe505aa..00a06b4 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open('README.md', 'r') as fh: setuptools.setup( name='netbox-scanner', - version='0.5.3', + version='0.5.4', author='José Lopes de Oliveira Jr.', author_email='jlojunior@gmail.com', description='A scanner util for NetBox',