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
..
aws [aws] ALB/NLB support SubnetMappings in AWS create LB call (#42060) 2018-10-04 16:53:32 -04:00
common Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
compat Enable pylint rules and fix exposed bugs. (#47219) 2018-10-19 08:32:52 -07:00
csharp win_exec: refactor PS exec runner (#45334) 2018-10-02 15:55:53 -07:00
facts Add Alibaba to RedHat family list. (#46828) 2018-10-12 10:23:03 +02:00
k8s Use kubeconfig if either context or kubeconfig is set (#47373) 2018-10-23 07:53:22 +01:00
net_tools
network modules: network: Add initial support for Ingate modules (#47494) 2018-10-26 09:47:58 +05:30
parsing
powershell WinRM/PSRP: Ensure shell returns UTF-8 output (#47404) 2018-10-24 10:40:54 +10:00
remote_management
six
storage
__init__.py
_text.py
acme.py No longer necessary since #33792 and #45628. (#45603) 2018-09-28 09:12:31 +01:00
alicloud_ecs.py Add new module ali_instance (#36898) 2018-10-23 13:02:21 -05:00
ansible_release.py
ansible_tower.py
api.py
azure_rm_common.py Remove extra parameter in format_exc (#46251) 2018-10-18 21:50:58 -04:00
azure_rm_common_rest.py
basic.py Add helper function to return helpful import error msg (#47409) 2018-10-24 07:21:36 +10:00
cloud.py
cloudscale.py
cloudstack.py
connection.py Try to be more verbose with JSON decode errors (#47066) 2018-10-18 12:09:00 -04:00
crypto.py
database.py
digital_ocean.py
dimensiondata.py
docker_common.py Fixup of #47046. (#47274) 2018-10-18 14:50:26 +01:00
ec2.py Fix ec2_group for numbered protocols (GRE) (#42765) 2018-09-05 13:34:26 -04:00
exoscale.py
f5_utils.py
firewalld.py
gcdns.py
gce.py
gcp.py removing libcloud secrets support for legacy gcp modules (#44932) 2018-08-31 08:28:32 -04:00
gcp_utils.py New GCP Module: gcp_pubsub_topic_facts (#46923) 2018-10-18 10:01:31 -04:00
gitlab.py
heroku.py
ibm_sa_utils.py
infinibox.py
influxdb.py
ipa.py IPA: Add option to specify timeout (#44572) 2018-08-26 23:18:46 +05:30
ismount.py
json_utils.py
keycloak.py
known_hosts.py
ldap.py
lxd.py
manageiq.py
memset.py
mysql.py Migrate from MySQLdb to PyMySQL (#40123) 2018-09-19 08:44:05 -07:00
netapp.py Define module for managing LDAP for E-Series (#42356) 2018-08-28 13:00:19 +01:00
netapp_elementsw_module.py
netapp_module.py
oneandone.py
oneview.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
online.py Add an Online servers fact 2018-09-24 21:03:50 +02:00
opennebula.py one_host environment variables, Fixes #44163 (#44568) 2018-08-27 10:55:04 -04:00
openstack.py
ovirt.py ovirt_vm: Fix issue in setting the custom_compatibility_version to NULL 2018-10-22 21:12:08 -07:00
postgres.py
pure.py
pycompat24.py Enable pylint rules and fix exposed bugs. (#47219) 2018-10-19 08:32:52 -07:00
rabbitmq.py Rabbitmq: Enable communication to management API over HTTPS (#18437) 2018-10-10 09:55:08 +05:30
rax.py
redfish_utils.py Fix idempotency issues in set_bios_attributes 2018-10-25 11:02:02 -04:00
redhat.py
scaleway.py Add API pagination support to Scaleway inventory (#46117) 2018-10-24 17:53:46 +01:00
service.py
splitter.py
univention_umc.py
urls.py introduce `module_utils.urls.fetch_file` as a wrapper to download and save files (#19172) 2018-10-08 14:41:57 +02:00
vca.py
vmware.py VMware: Avoid misleading PyVmomi error if requests import fails (#47313) 2018-10-26 12:40:25 +05:30
vmware_rest_client.py VMware: Add tag facts to vmware_guest_facts (#47495) 2018-10-25 09:45:38 +05:30
vultr.py vultr: fix for unreliable API behavior (#45712) 2018-09-19 00:01:53 +02:00
yumdnf.py don't restrict disable_excludes choices incorrectly (#47453) 2018-10-23 11:39:55 -05:00