python-provy/provy — pull request #140 by jbzdak (2014-01-02 18:00:51+00:00)
Title: Added ability to specify return codes.

When getting returncode other than 0 `fabric` raises `SystemExit` error by default, which is very unformtuate, since it is one exception you really shouldn't catch in Python.

You can of course use `fabric.api.settings(warn_only=True`, but you have to know of its existence, which can be hard. And we force user to use api other than `provy` api. I added a small feature that allows user to specify return codes that are considered as succesfull execurion, and if process return other return code I raise sane `CommandExecutionError`).

Let me know if any further changes are neccessary.