InsightSSG / Net-Manage

Net-Manage is a repository for storing re-usable functions and playbooks for automation.
MIT License
4 stars 2 forks source link

Update create_netbox_handler for Cert Validation #522

Closed ngsouse closed 8 months ago

ngsouse commented 9 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