mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
* Avoid misleading PyVmomi error if requests import fails Requests is imported by the VMware module_utils as an external dependency; however, because it is in a try/catch block containing the imports for PyVmomi, if requests fails to import properly, Ansible will instead complain about PyVmomi not being installed. By moving the import outside of the try/catch block, if requests fails to import, an error like the following will be returned: ImportError: No module named requests This should result in less confusion. * catch requests ImportError |
||
---|---|---|
.. | ||
cli | ||
compat | ||
config | ||
errors | ||
executor | ||
galaxy | ||
inventory | ||
module_utils | ||
modules | ||
parsing | ||
playbook | ||
plugins | ||
template | ||
utils | ||
vars | ||
__init__.py | ||
constants.py | ||
release.py |