From 79cff7c0766bd6274ba6828ba21fe198bf9fc4df Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 15 May 2013 07:36:23 +0200 Subject: [PATCH] notification modules irc, mqtt now exit with changed=False (as per discussion on ML) --- library/notification/irc | 3 +-- library/notification/mqtt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/library/notification/irc b/library/notification/irc index 56340d9a162..84a0a71c009 100644 --- a/library/notification/irc +++ b/library/notification/irc @@ -138,8 +138,7 @@ def main(): except Exception, e: module.fail_json(msg="unable to send to IRC: %s" % e) - changed = True - module.exit_json(changed=changed, channel=channel, nick=nick, + module.exit_json(changed=False, channel=channel, nick=nick, msg=msg) # this is magic, see lib/ansible/module_common.py diff --git a/library/notification/mqtt b/library/notification/mqtt index 7ac687a2fe3..e30ed4c59c6 100644 --- a/library/notification/mqtt +++ b/library/notification/mqtt @@ -173,7 +173,7 @@ def main(): except Exception, e: module.fail_json(msg="unable to publish to MQTT broker %s" % (e)) - module.exit_json(changed=True, topic=topic) + module.exit_json(changed=False, topic=topic) # this is magic, see lib/ansible/module_common.py #<>