Merge pull request #1336 from quoing/devel

Fix 'An error occurred while looking up _xmpp-client._tcp.10.100.1.10…8' when IP host is configured
This commit is contained in:
Brian Coca 2015-12-22 10:03:16 -05:00
commit 2850c7acb8

View file

@ -134,7 +134,7 @@ def main():
msg = xmpp.protocol.Message(body=module.params['msg']) msg = xmpp.protocol.Message(body=module.params['msg'])
try: try:
conn=xmpp.Client(server) conn=xmpp.Client(server, debug=[])
if not conn.connect(server=(host,port)): if not conn.connect(server=(host,port)):
module.fail_json(rc=1, msg='Failed to connect to server: %s' % (server)) module.fail_json(rc=1, msg='Failed to connect to server: %s' % (server))
if not conn.auth(user,password,'Ansible'): if not conn.auth(user,password,'Ansible'):