ansible/lib/ansible
Peter Oliver faf85ec57c 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-25 06:59:37 -07:00
..
cli fixes-#15685-tools-that-paginate-show-spurious-less-output: less --version outputs to standard out not to standard error so this changes the redirect from 2> to > (#15720) 2016-05-09 16:50:25 -04: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
errors Add options to make includes 'static' 2016-03-24 10:12:51 -04:00
executor Fix the error handling for loop squashing to restore the name argument into the task args (#15949) 2016-05-21 07:34:36 -07:00
galaxy API now connects to server lazily (#15632) 2016-04-28 23:28:49 -04:00
inventory made format more flexible and allow for non dict entries 2016-05-16 14:40:11 -04:00
module_utils Make load_params into a function that custom modules can access (#15913) 2016-05-18 10:55:46 -07:00
modules Update submodule ref to include parameter change to junos module. 2016-05-24 11:48:32 -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-25 06:59:37 -07:00
playbook Reworking retry/until logic to fix bugs 2016-05-13 16:09:17 -04:00
plugins Add work-around for ssh pty race condition. 2016-05-19 10:34:09 -07:00
template moved last utils.debug to display.debug 2016-04-08 16:00:36 -04:00
utils Add aliases 2016-04-29 01:29:04 -04:00
vars Do not include params when getting role vars in certain situations 2016-05-12 17:12:00 -04:00
__init__.py New release v2.1.0.0-0.2.rc2 2016-05-13 17:07:03 -04:00
constants.py add centrify dzdo escalation (#15219) 2016-04-25 11:24:26 -04:00
release.py Fix the version number 2016-04-29 14:01:14 -07:00
test-requirements.txt