Adding the --netbox.ssl_verify option #152
1 changed files with 2 additions and 1 deletions
|
@ -81,7 +81,7 @@ def get_netbox_instance():
|
||||||
if config.netbox.url is None or config.netbox.token is None:
|
if config.netbox.url is None or config.netbox.token is None:
|
||||||
logging.error('Netbox URL and token are mandatory')
|
logging.error('Netbox URL and token are mandatory')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
nb = pynetbox.api(
|
nb = pynetbox.api(
|
||||||
url=get_config().netbox.url,
|
url=get_config().netbox.url,
|
||||||
token=get_config().netbox.token,
|
token=get_config().netbox.token,
|
||||||
|
@ -94,5 +94,6 @@ def get_netbox_instance():
|
||||||
|
|
||||||
return nb
|
return nb
|
||||||
|
|
||||||
|
|
||||||
config = get_config()
|
config = get_config()
|
||||||
netbox_instance = get_netbox_instance()
|
netbox_instance = get_netbox_instance()
|
||||||
|
|
Loading…
Reference in a new issue