Merge pull request #2914 from jpmens/notif_unchanged
notification modules irc, mqtt now exit with changed=False
This commit is contained in:
commit
f8a99335dd
2 changed files with 2 additions and 3 deletions
|
@ -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>>
|
||||
|
|
Loading…
Reference in a new issue