mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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 |