cac11f9b80
Use an exception to return failures rather than fail_json(). This way we can easily catch the failures if the calling code decides it can deal with it. This has the side effect of making it easier to unittest this code as we can catch the expected exceptions instead of having to catch the interpreter exiting and then parse stdout for the expected data. |
||
---|---|---|
.. | ||
ansible |