Make jabber module compile on python 3

pull/18777/head
Michael Scherer 9 years ago committed by Matt Clay
parent 60b6cb8305
commit 9cac0b54c6

@ -155,11 +155,13 @@ def main():
conn.send(msg) conn.send(msg)
time.sleep(1) time.sleep(1)
conn.disconnect() conn.disconnect()
except Exception, e: except Exception:
e = get_exception()
module.fail_json(msg="unable to send msg: %s" % e) module.fail_json(msg="unable to send msg: %s" % e)
module.exit_json(changed=False, to=to, user=user, msg=msg.getBody()) module.exit_json(changed=False, to=to, user=user, msg=msg.getBody())
# import module snippets # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
from ansible.module_utils.pycompat24 import get_exception
main() main()

@ -58,4 +58,3 @@
/network/nmcli.py /network/nmcli.py
/network/openvswitch_bridge.py /network/openvswitch_bridge.py
/network/openvswitch_port.py /network/openvswitch_port.py
/notification/jabber.py

Loading…
Cancel
Save