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

notification modules irc, mqtt now exit with changed=False

(as per discussion on ML)
This commit is contained in:
Jan-Piet Mens 2013-05-15 07:36:23 +02:00
parent d29d142a2d
commit 79cff7c076
2 changed files with 2 additions and 3 deletions

View file

@ -138,8 +138,7 @@ def main():
except Exception, e: except Exception, e:
module.fail_json(msg="unable to send to IRC: %s" % e) module.fail_json(msg="unable to send to IRC: %s" % e)
changed = True module.exit_json(changed=False, channel=channel, nick=nick,
module.exit_json(changed=changed, channel=channel, nick=nick,
msg=msg) msg=msg)
# this is magic, see lib/ansible/module_common.py # this is magic, see lib/ansible/module_common.py

View file

@ -173,7 +173,7 @@ def main():
except Exception, e: except Exception, e:
module.fail_json(msg="unable to publish to MQTT broker %s" % (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 # this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>> #<<INCLUDE_ANSIBLE_MODULE_COMMON>>