From 59a95da00184500636a008cd9c14a3b8f3070526 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) --- notification/irc | 3 +-- notification/mqtt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/notification/irc b/notification/irc index 56340d9a162..84a0a71c009 100644 --- a/notification/irc +++ b/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/notification/mqtt b/notification/mqtt index 7ac687a2fe3..e30ed4c59c6 100644 --- a/notification/mqtt +++ b/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 #<>