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

Remove changed=True from pushbullet module

By convention, notification modules should not return changed=True
This commit is contained in:
Willy Barro 2015-05-13 19:13:38 -03:00 committed by Matt Clay
parent 2274568008
commit b3e061ee7a

View file

@ -24,7 +24,7 @@ module: pushbullet
short_description: Sends notifications to Pushbullet
description:
- This module sends push notifications via Pushbullet to channels or devices.
version_added: "1.8"
version_added: "2.0"
options:
api_key:
description:
@ -164,7 +164,7 @@ def main():
success, result = target.push_note(title, body)
if success:
module.exit_json(changed=True, msg="OK")
module.exit_json(changed=False, msg="OK")
# General failure
module.fail_json(msg="Some error ocurred, Pushbullet response: %s" % (result))