You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/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
7 years ago
..
aws [aws] ALB/NLB support SubnetMappings in AWS create LB call (#42060) 7 years ago
common Python 3.8 collections compatibility fixes. 7 years ago
compat Enable pylint rules and fix exposed bugs. (#47219) 7 years ago
csharp win_exec: refactor PS exec runner (#45334) 7 years ago
facts Add Alibaba to RedHat family list. (#46828) 7 years ago
k8s Use kubeconfig if either context or kubeconfig is set (#47373) 7 years ago
net_tools doc: fixes the the repetitions (#43937) 7 years ago
network modules: network: Add initial support for Ingate modules (#47494) 7 years ago
parsing Improve convert_bool error message 8 years ago
powershell WinRM/PSRP: Ensure shell returns UTF-8 output (#47404) 7 years ago
remote_management Connection and MAC pool module for Cisco UCS (#31151) 8 years ago
six Surround top-level function and class definitions with two blank lines. 7 years ago
storage New module for managing EMC VNX Block storage (#42945) 7 years ago
__init__.py Enhance empty __init__ code-smell to check module_utils (#33438) 8 years ago
_text.py Fix for to_text and to_bytes error handlers 9 years ago
acme.py No longer necessary since #33792 and #45628. (#45603) 7 years ago
alicloud_ecs.py Add new module ali_instance (#36898) 7 years ago
ansible_release.py [AWS] Add Ansible Version to botocore user agent string (#39993) 8 years ago
ansible_tower.py Tower modules: move HAS_TOWER_CLI check in module_utils and minor improvements (#39809) 7 years ago
api.py Remove comments about import order 8 years ago
azure_rm_common.py Remove extra parameter in format_exc (#46251) 7 years ago
azure_rm_common_rest.py introducing azure_rm_resource (#39274) 8 years ago
basic.py Add helper function to return helpful import error msg (#47409) 7 years ago
cloud.py AWSRetry: allow retrying on additional ClientError exceptions (#28483) 8 years ago
cloudscale.py cloudscale_floating_ip module (#33181) 8 years ago
cloudstack.py cloudstack: fix query tags by resourceid (#40482) 8 years ago
connection.py Try to be more verbose with JSON decode errors (#47066) 7 years ago
crypto.py Allow multiple values per key in name fields in openssl_certificate/csr (#30338) 8 years ago
database.py Surround top-level function and class definitions with two blank lines. 7 years ago
digital_ocean.py Include Digital Ocean Token Alias (#36810) 8 years ago
dimensiondata.py dimensiondata: fix broken import (#35634) 8 years ago
docker_common.py Fixup of #47046. (#47274) 7 years ago
ec2.py Fix ec2_group for numbered protocols (GRE) (#42765) 7 years ago
exoscale.py exo_dns_record: remove limitation for multiple records only for A type (#35173) 8 years ago
f5_utils.py Refactor common network shared and platform utils code into package (#33452) 8 years ago
firewalld.py refactor firewalld module, add firewalld module_util (#37603) 8 years ago
gcdns.py Collated PEP8 fixes (#25293) 9 years ago
gce.py Collated PEP8 fixes (#25293) 9 years ago
gcp.py removing libcloud secrets support for legacy gcp modules (#44932) 7 years ago
gcp_utils.py New GCP Module: gcp_pubsub_topic_facts (#46923) 7 years ago
gitlab.py Fix shebangs and file modes and update tests. (#40563) 8 years ago
heroku.py New module: heroku_collaborator (#39001) 8 years ago
ibm_sa_utils.py Add ibm storage module to ansible (#39960) 7 years ago
infinibox.py Collated PEP8 fixes (#25293) 9 years ago
influxdb.py influxdb: Add condition for retries argument (#38441) 8 years ago
ipa.py IPA: Add option to specify timeout (#44572) 7 years ago
ismount.py fix typo 10 years ago
json_utils.py Remove use of simplejson throughout code base (#43548) 7 years ago
keycloak.py New module: keycloak_clienttemplate (#33419) 8 years ago
known_hosts.py Fix invalid string escape sequences. 8 years ago
ldap.py doc: fix maintainer's name (#44452) 7 years ago
lxd.py Remove use of simplejson throughout code base (#43548) 7 years ago
manageiq.py Fix shebangs and file modes and update tests. (#40563) 8 years ago
memset.py New Memset module to request DNS reloads (#40390) 8 years ago
mysql.py Migrate from MySQLdb to PyMySQL (#40123) 7 years ago
netapp.py Define module for managing LDAP for E-Series (#42356) 7 years ago
netapp_elementsw_module.py Adding Common files for NetApp ElementSW release (#43727) 7 years ago
netapp_module.py Adding Common files for NetApp ElementSW release (#43727) 7 years ago
oneandone.py New module: manage 1&1 public ip (cloud/oneandone/oneandone_public_ip) (#35079) 8 years ago
oneview.py Python 3.8 collections compatibility fixes. 7 years ago
online.py Add an Online servers fact 7 years ago
opennebula.py one_host environment variables, Fixes #44163 (#44568) 7 years ago
openstack.py openstack: Correct fail_json call in module_utils (#41064) 8 years ago
ovirt.py ovirt_vm: Fix issue in setting the custom_compatibility_version to NULL 7 years ago
postgres.py Remove wildcard imports and get_exception calls 8 years ago
pure.py Initial commit for Pure Storage FlashBlade module (#32467) 8 years ago
pycompat24.py Enable pylint rules and fix exposed bugs. (#47219) 7 years ago
rabbitmq.py Rabbitmq: Enable communication to management API over HTTPS (#18437) 7 years ago
rax.py Fix invalid string escape sequences. 8 years ago
redfish_utils.py Fix idempotency issues in set_bios_attributes 7 years ago
redhat.py Miscellaneous pylint fixes. 8 years ago
scaleway.py Add API pagination support to Scaleway inventory (#46117) 7 years ago
service.py Fix typo of stderr 7 years ago
splitter.py Collated PEP8 fixes (#25293) 9 years ago
univention_umc.py Python 2.6 `str.format()` compatibility fixes. 8 years ago
urls.py introduce `module_utils.urls.fetch_file` as a wrapper to download and save files (#19172) 7 years ago
vca.py Use response.content instead of response object (#25772) 8 years ago
vmware.py VMware: Avoid misleading PyVmomi error if requests import fails (#47313) 7 years ago
vmware_rest_client.py VMware: Add tag facts to vmware_guest_facts (#47495) 7 years ago
vultr.py vultr: fix for unreliable API behavior (#45712) 7 years ago
yumdnf.py don't restrict disable_excludes choices incorrectly (#47453) 7 years ago