Files
community.general/lib/ansible/module_utils
Jim Gu 99ee30768a VMware: Avoid misleading PyVmomi error if requests import fails (#47313)
* 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
2018-10-26 12:40:25 +05:30
..
2017-08-07 19:46:06 -07:00
2018-10-18 14:50:26 +01:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2018-08-21 16:32:37 +02:00
2018-09-24 21:03:50 +02:00
2017-11-21 10:03:34 -08:00
2017-09-13 01:53:08 -07:00
2018-07-31 13:23:05 -04:00
2017-06-02 12:14:11 +01:00