Commit Graph

15 Commits (4a0a9cd1fccb2be29850941554db2c10f221f1c7)

Author SHA1 Message Date
chouseknecht 7f97cf4d04
Fix compose_version error. Check has compose before checking version. 8 years ago
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>
8 years ago
Chris Houseknecht 964d9b3a6d Fix #3906 - Enforce required minimum compose version. (#3925)
* Fix #3906 - Require minimum compose version.

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