netbox-community / Device-Type-Library-Import

This library is intended to assist with importing device and module types into NetBox from the NetBox Community DeviceType-Library
https://github.com/netbox-community/devicetype-library
MIT License
247 stars 74 forks source link

IGNORE_SSL_ERRORS not propigating #95

Closed skyefugate closed 11 months ago

skyefugate commented 11 months ago

Hi -- I tried running the importer on my instance of Netbox and I ran into issues where when I set the IGNORE_SSL_ERRORS to 'True' it was not propagating all the way. The resolution to this was to set line 481 in netbox_api.py to the below.

response = requests.patch(url, headers=headers, files=files, verify=False)

What was added was ', verify=False'

This just needs to take the propagation from the .env file to fix. Thanks!

danner26 commented 11 months ago

Thank you for this. This also assisted us in catching an issue with permissions that we did not know about previously.

danner26 commented 11 months ago

This issue is now resolved in Release v2.0.1