Commit 79cff7c0 by Jan-Piet Mens

notification modules irc, mqtt now exit with changed=False

  (as per discussion on ML)
parent d29d142a
......@@ -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
......
......@@ -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
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment