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/cloud/docker
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>
9 years ago
..
__init__.py added __init__.py to new cloud subcategories so builds work again 10 years ago
_docker.py move environment variable gathering to end of __init__() (#3890) 9 years ago
docker_container.py Fix #16211 - only stop/kill running containers 9 years ago
docker_image.py Fail gracefully when build path is not found. 9 years ago
docker_image_facts.py Fixing Docker compile time errors irt exception handling for Python 3 9 years ago
docker_login.py Fixing Docker compile time errors irt exception handling for Python 3 9 years ago
docker_service.py docker_service: make PyYAML requirement explicit 9 years ago