notification modules should set chnged to False

reviewable/pr18780/r1
Matt Coddington 12 years ago
parent 117f50dcde
commit e8108dfc65

@ -175,7 +175,7 @@ def main():
# If we're in check mode, just exit pretending like we succeeded # If we're in check mode, just exit pretending like we succeeded
if module.check_mode: if module.check_mode:
module.exit_json(changed=True) module.exit_json(changed=False)
# Send the data to Flowdock # Send the data to Flowdock
try: try:
@ -183,7 +183,7 @@ def main():
except Exception, e: except Exception, e:
module.fail_json(msg="unable to send msg: %s" % e) module.fail_json(msg="unable to send msg: %s" % e)
module.exit_json(changed=True, msg=module.params["msg"]) module.exit_json(changed=False, msg=module.params["msg"])
# 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>>

Loading…
Cancel
Save