Merge pull request #2918 from bcoca/jabber_notchanged
jabber module returns changed=false on success
This commit is contained in:
commit
56e3cef60c
1 changed files with 1 additions and 2 deletions
|
@ -123,8 +123,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)
|
||||||
|
|
||||||
changed = True
|
module.exit_json(changed=False, to=to, user=user, msg=msg.getBody())
|
||||||
module.exit_json(changed=changed, to=to, user=user, msg=msg.getBody())
|
|
||||||
|
|
||||||
# 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…
Reference in a new issue