community.general/lib/ansible
Peter Oliver 95cfceda98 Catch DistributionNotFound when pycrypto is absent (#15731)
* Catch DistributionNotFound when pycrypto is absent

On Solaris 11, module `pkg_resources` throws `DistributionNotFound` on import if `cryptography` is installed but `pycrypto` is not.  This change causes that situation to be handled gracefully.

I'm not using Paramiko or Vault, so I my understanding is that I don't
need `pycrpto`.  I could install `pycrypto` to make the error go away, but:
- The latest released version of `pycrypto` doesn't build cleanly on Solaris (https://github.com/dlitz/pycrypto/issues/184).
- Solaris includes an old version of GMP that triggers warnings every time Ansible runs (https://github.com/ansible/ansible/issues/6941).  I notice that I can silence these warnings with `system_warnings` in `ansible.cfg`, but not installing `pycrypto` seems like a safer solution.

* Ignore only `pkg_resources.DistributionNotFound`, not other exceptions.
2016-05-19 11:39:34 -07:00
..
cli Make 'required' optional in module docs (#15906) 2016-05-18 16:57:36 -07:00
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Add options to make includes 'static' 2016-03-24 10:12:51 -04:00
executor More playbook executor compatibility fixes 2016-05-18 14:09:21 -04:00
galaxy API now connects to server lazily (#15632) 2016-04-28 23:28:02 -04:00
inventory made format more flexible and allow for non dict entries 2016-05-16 14:39:49 -04:00
module_utils Make load_params into a function that custom modules can access (#15913) 2016-05-18 10:50:55 -07:00
modules Update submodule refs 2016-05-18 17:04:16 -07:00
new_inventory fix some warning of undefined name. 2015-10-09 12:43:42 +08:00
parsing Catch DistributionNotFound when pycrypto is absent (#15731) 2016-05-19 11:39:34 -07:00
playbook Reworking retry/until logic to fix bugs 2016-05-13 16:09:38 -04:00
plugins Add work-around for ssh pty race condition. 2016-05-19 10:33:17 -07:00
template moved last utils.debug to display.debug 2016-04-08 16:00:36 -04:00
utils docs: cloudstack: add cloudstack guide to doc fragments (#15898) 2016-05-19 10:31:44 +02:00
vars Do not include params when getting role vars in certain situations 2016-05-11 13:17:32 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py add centrify dzdo escalation (#15219) 2016-04-25 11:24:26 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00