Skip to content

Commit

Permalink
adjust IP address creation. removed tags, dns_name
Browse files Browse the repository at this point in the history
  • Loading branch information
bile0026 committed Nov 23, 2020
1 parent 7a7e8b6 commit c4e16ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nbs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class NetBoxScanner(object):

def __init__(self, address, token, ssl_verify, tag, cleanup):
if (ssl_verify == 'No'):
if (ssl_verify == 'no'):
session = requests.Session()
session.verify = False
self.netbox = api(address, token)
Expand Down Expand Up @@ -66,8 +66,8 @@ def sync_host(self, host):
print(self.tag)
self.netbox.ipam.ip_addresses.create(
address=host[0],
tags=[self.tag],
dns_name=host[1],
# tags=[self.tag],
# dns_name=host[1],
description=host[1]
)
logging.info(f'created: {host[0]}/32 "{host[1]}"')
Expand Down

0 comments on commit c4e16ef

Please sign in to comment.