1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

clarification of error and success messages

This commit is contained in:
Jim Richardson 2014-10-19 21:19:25 -07:00 committed by Matt Clay
parent 34f2ebc0ab
commit 5edd0274de

View file

@ -97,9 +97,9 @@ def main():
try:
msg_object.run()
except:
module.fail_json(msg='Wibble')
module.fail_json(msg='Unable to send msg via pushover')
module.exit_json(msg="OK", changed=False)
module.exit_json(msg=msg, changed=False)
# import module snippets
from ansible.module_utils.basic import *