mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
module returns changed=false on success
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
This commit is contained in:
@@ -123,8 +123,7 @@ def main():
|
||||
except Exception, e:
|
||||
module.fail_json(msg="unable to send msg: %s" % e)
|
||||
|
||||
changed = True
|
||||
module.exit_json(changed=changed, to=to, user=user, msg=msg.getBody())
|
||||
module.exit_json(changed=False, to=to, user=user, msg=msg.getBody())
|
||||
|
||||
# this is magic, see lib/ansible/module_common.py
|
||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
||||
|
||||
Reference in New Issue
Block a user