Commit Graph

14 Commits (343c3ecfb9a9ec216357a3c54d5024ecc5ef70ca)

Author SHA1 Message Date
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
Chris Houseknecht 964d9b3a6d Fix #3906 - Enforce required minimum compose version. (#3925)
* Fix #3906 - Require minimum compose version.

* Fix typo in message text.
9 years ago
chouseknecht 904d947172 Fix for issue 3740. Make docker_service more resilient when targeting older API versions. 9 years ago
Shubham 64b104ac37 remove module argument, fix #3682 (#3683) 9 years ago
Matt Martz 9b6a7eb4f9 Revert "Fix doc strings spacing."
This reverts commit 127d518011.
9 years ago
chouseknecht 127d518011
Fix doc strings spacing. 9 years ago
chouseknecht a81d0a6809
Fix doc strings. Missing requirements and doc fragment reference. 9 years ago
chouseknecht 3a5dd00076
Fixed files/project_files naming. Correct name is files. 9 years ago
chouseknecht 22853efeed
Flip version added back to 2.2 to make tests pass. 9 years ago
chouseknecht 834d2fb9fe
Moving version added to 2.1 9 years ago
chouseknecht 282b2d45df
Added actions to RETURN docs. Show actions when debug or check mode. 9 years ago
chouseknecht c2d2189274
Removed use of --diff. Replaced 'diff' in output with 'actions'. Only show 'actions' in output if debug true. 9 years ago
chouseknecht f69b352341 Removed fail method. Combined recreate and force_recreate params. 9 years ago
chouseknecht d9b026dcef Adding docker_service 9 years ago