ansible/cloud
Stefan Hajnoczi 8254e2b547 docker_service: make PyYAML requirement explicit
The "Developing Modules" documentation states:

  Include a minimum of dependencies if possible. If there are
  dependencies, document them at the top of the module file, and have
  the module raise JSON error messages when the import fails.

When docker_service runs on a remote host without PyYAML it crashes with
ImportError.

This patch raises a JSON error message when import fails, but only if
the PyYAML module is actually used.  It's only needed when the
"definition" parameter is given.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
2016-06-11 17:29:39 +01:00
..
amazon added missing colons to documentation (#3913) 2016-06-10 09:44:57 -04:00
azure Fix 3857 name regex 2016-06-03 07:53:55 -04:00
digital_ocean Fixing compile time error exception handling for python 3. (#3843) 2016-06-02 14:51:35 -07:00
docker docker_service: make PyYAML requirement explicit 2016-06-11 17:29:39 +01:00
google correct gs_storage docs to match reality 2016-06-03 10:42:51 -07:00
linode Py3 exclude list (#3698) 2016-05-19 15:34:59 -07:00
openstack Fixing open stack compile time errors irt exception handling for Python 3 (#3848) 2016-06-03 06:37:09 -07:00
rackspace Fixing Rackspace compile time errors irt exception handling for Python 3 (#3849) 2016-06-03 06:39:58 -07:00
vmware Port vsphere_guest to py3/py2.4 syntax (#3721) 2016-05-23 09:36:24 -04:00
__init__.py package files 2014-09-26 11:05:47 -04:00