freeipa / ansible-freeipa

Ansible roles and modules for FreeIPA
GNU General Public License v3.0
480 stars 231 forks source link

plugins/inventory/freeipa: Try imports for requests and urllib3 #1261

Closed t-woerner closed 1 week ago

t-woerner commented 1 week ago

The bindings for requests and urllib3 might not be available, especially in the ansible-test fake execution test (next version). These imports are now in a try exception clause to make sure that the fake execution test will be passing and also that there is a better error message if the bindings are missing.

urllib3.exceptions.InsecureRequestWarning is now also only disabled if no certificate has been given for the verification of the connection.