Closed ngsouse closed 10 months ago
Update create_netbox_handler to conditionally validate certificates based on env settings.
Use create_netbox_handler in place of 'nb = pynetbox.api(netbox_url, token=token)'
nb = pynetbox.api(nb_path, token) nb.http_session.verify = os.environ.get('validate_certs', True) return nb
Update create_netbox_handler to conditionally validate certificates based on env settings.
Use create_netbox_handler in place of 'nb = pynetbox.api(netbox_url, token=token)'
nb = pynetbox.api(nb_path, token) nb.http_session.verify = os.environ.get('validate_certs', True) return nb